Skip to content
Snippets Groups Projects
Commit fcc0648b authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

Clang: Emit a warning if LLVM_INSTALL_DIR is not set


Change-Id: I18f02e0878e2037857ccd85943c13bbac9cade6b
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 1bb11c5b
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,10 @@ Module { ...@@ -27,7 +27,10 @@ Module {
property stringList llvmLibs: clangProbe.llvmLibs property stringList llvmLibs: clangProbe.llvmLibs
validate: { validate: {
if (!clangProbe.found) if (!clangProbe.found) {
console.warn("Set LLVM_INSTALL_DIR to build the Clang Code Model."
+ " For details, see doc/src/editors/creator-clang-codemodel.qdoc.");
throw "No usable libclang found"; throw "No usable libclang found";
}
} }
} }
...@@ -75,6 +75,9 @@ exists(../shared/qbs/qbs.pro)|!isEmpty(QBS_INSTALL_DIR): \ ...@@ -75,6 +75,9 @@ exists(../shared/qbs/qbs.pro)|!isEmpty(QBS_INSTALL_DIR): \
isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR) isEmpty(LLVM_INSTALL_DIR):LLVM_INSTALL_DIR=$$(LLVM_INSTALL_DIR)
exists($$LLVM_INSTALL_DIR) { exists($$LLVM_INSTALL_DIR) {
SUBDIRS += clangcodemodel SUBDIRS += clangcodemodel
} else {
warning("Set LLVM_INSTALL_DIR to build the Clang Code Model. " \
"For details, see doc/src/editors/creator-clang-codemodel.qdoc.")
} }
isEmpty(IDE_PACKAGE_MODE) { isEmpty(IDE_PACKAGE_MODE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment