aboutsummaryrefslogtreecommitdiffstats
path: root/cc/config/clang.go
diff options
context:
space:
mode:
Diffstat (limited to 'cc/config/clang.go')
-rw-r--r--cc/config/clang.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/config/clang.go b/cc/config/clang.go
index 3ff6b1bf..977afe12 100644
--- a/cc/config/clang.go
+++ b/cc/config/clang.go
@@ -65,6 +65,11 @@ var ClangUnknownCflags = sorted([]string{
"-mbionic",
})
+var ClangLibToolingUnknownCflags = []string{
+ "-flto",
+ "-fsanitize*",
+}
+
func init() {
pctx.StaticVariable("ClangExtraCflags", strings.Join([]string{
"-D__compiler_offsetof=__builtin_offsetof",