Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: build/config/clang/BUILD.gn

Issue 2079283002: [iOS/GN] Allow compilation with system clang. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename use_system_clang to is_clang_xcode Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/config/clang/BUILD.gn
diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn
index dbff398e1f6d06231396b432f7167d00bfc50e38..19b9d7d4b230ec994b0d14de5dcb8ebe1b1ab793 100644
--- a/build/config/clang/BUILD.gn
+++ b/build/config/clang/BUILD.gn
@@ -60,6 +60,15 @@ config("find_bad_constructs") {
]
}
}
+
+ # TODO(ios): Remove once Xcode's libc++ has LLVM r256325.
sdefresne 2016/06/21 13:44:22 This should not have been defined here, moved inst
+ if (is_clang_xcode && is_ios) {
+ cflags += [
+ "-isystem",
+ rebase_path("//third_party/llvm-build/Release+Asserts/include/c++/v1",
+ root_build_dir),
+ ]
+ }
}
# Enables some extra Clang-specific warnings. Some third-party code won't

Powered by Google App Engine
This is Rietveld 408576698