Skip to content
  • Ulf Hermann's avatar
    Add some sanity to the clang detection code for qmake build · 5e063954
    Ulf Hermann authored
    
    
    llvm-config can usually be found in PATH on systems which have standard
    paths at all. There is no need to specify LLVM_INSTALL_DIR then.
    Furthermore, llvm-config has an option --bindir which will tell us the
    directory where clang can be found (if installed). No need to apply
    strange heuristics based on LLVM_INSTALL_DIR. Finally, we can check
    within each .pro file for the conditions to be met using qmake's
    require() function. This way we don't need to fiddle with
    LLVM_INSTALL_DIR in unrelated places.
    
    Change-Id: I1a6ab092b06de40dfbfa4a9e7053451360fd24c8
    Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@qt.io>
    5e063954