[gedit-code-assistance] Add clang include depending on the version
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-code-assistance] Add clang include depending on the version
- Date: Sun, 14 Oct 2012 19:02:03 +0000 (UTC)
commit a8f3cdd17268c5144a8e1308cc080139ac9e1f77
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sun Oct 14 21:01:34 2012 +0200
Add clang include depending on the version
backends/c/gcp-c-compile-args.vala | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/backends/c/gcp-c-compile-args.vala b/backends/c/gcp-c-compile-args.vala
index 1dd6f7f..44c9a44 100644
--- a/backends/c/gcp-c-compile-args.vala
+++ b/backends/c/gcp-c-compile-args.vala
@@ -469,16 +469,8 @@ namespace Gcp.C
// Note: this is a hack but it seems clang 2.8 will not properly
// add its default include search directories
- if (Config.llvm_version() == "2.8")
- {
- 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";
- }
+ args += "-I";
+ args += "/usr/lib/clang/%s/include".printf(Config.llvm_version());
Log.debug("Compile flags for `%s': `%s'",
file.get_path(),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]