commit 9a628f107015b14207990b92c92774c1fd4c2192 Author: Dhruva Krishnamurth Date: Fri Apr 13 20:22:47 2018 -0700 Use darwin SDK on 10.13.4, stub out some warnings to avoid having to fix them diff --git a/cc/config/clang.go b/cc/config/clang.go index b78e1fc3..9dc221fc 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -115,11 +115,15 @@ func init() { // Turn off -Wthread-safety-negative, to avoid breaking projects that use -Weverything. "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS", "-Wno-thread-safety-negative", + + // Stub to avoid fixing them on darwin + "-Wno-zero-as-null-pointer-constant", + "-Wno-tautological-constant-compare", + "-Wdelete-non-virtual-dtor", }, " ")) pctx.StaticVariable("ClangExtraTargetCflags", strings.Join([]string{ "-nostdlibinc", - "-fsanitize=local-init", }, " ")) pctx.StaticVariable("ClangExtraNoOverrideCflags", strings.Join([]string{ diff --git a/cc/config/x86_darwin_host.go b/cc/config/x86_darwin_host.go index bb751feb..ff2b3f0d 100644 --- a/cc/config/x86_darwin_host.go +++ b/cc/config/x86_darwin_host.go @@ -89,6 +89,7 @@ var ( "10.10", "10.11", "10.12", + "10.13", } darwinAvailableLibraries = append(