[gedit-code-assistance] Add include dir hack for clang 2.9
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-code-assistance] Add include dir hack for clang 2.9
- Date: Tue, 15 Nov 2011 17:52:42 +0000 (UTC)
commit e9110fa8dc8935786a14f8810078f34b090e72f6
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Tue Nov 15 18:52:25 2011 +0100
Add include dir hack for clang 2.9
This might be a fedora related bug, but libclang does not include the standard
include header paths it seems.
src/gcp-c-compile-args.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gcp-c-compile-args.vala b/src/gcp-c-compile-args.vala
index 3f244a3..5dcfcaf 100644
--- a/src/gcp-c-compile-args.vala
+++ b/src/gcp-c-compile-args.vala
@@ -474,6 +474,11 @@ namespace Gcp.C
args += "-I";
args += "/usr/lib/clang/2.8/include";
}
+ else if (Config.llvm_version() == "2.9")
+ {
+ args += "-I";
+ args += "/usr/lib/clang/2.9/include";
+ }
Log.debug("Compile flags for `%s': `%s'",
file.get_path(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]