Commit f3ff4ba3 authored by Nikita Baryshnikov's avatar Nikita Baryshnikov

Clang: fix compile error

avoid adding -L/usr/lib to linker options. To avoid linker errors with
Qt from system and from own toolchain.

Change-Id: I291943e6b17c2bf17eb0700b0fc0cda435588ad5
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 182bd0b3
......@@ -93,7 +93,8 @@ unix {
clang_lib = $$findClangLibInLibDir($$LLVM_LIBDIR)
isEmpty(clang_lib): error("Cannot find Clang shared library in $$LLVM_LIBDIR")
LLVM_LIBS = -L$${LLVM_LIBDIR} -l$${clang_lib}
!contains(QMAKE_DEFAULT_LIBDIRS, $$LLVM_LIBDIR): LLVM_LIBS = -L$${LLVM_LIBDIR}
LLVM_LIBS += -l$${clang_lib}
}
isEmpty(LLVM_VERSION): error("Cannot determine clang version at $$LLVM_INSTALL_DIR")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment