Advertisement
mechanicker

build/soong

Apr 12th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 1.24 KB | None | 0 0
  1. commit 9a628f107015b14207990b92c92774c1fd4c2192
  2. Author: Dhruva Krishnamurth <dhruvakm@gmail.com>
  3. Date:   Fri Apr 13 20:22:47 2018 -0700
  4.  
  5.     Use darwin SDK on 10.13.4, stub out some warnings to avoid having to fix them
  6.  
  7. diff --git a/cc/config/clang.go b/cc/config/clang.go
  8. index b78e1fc3..9dc221fc 100644
  9. --- a/cc/config/clang.go
  10. +++ b/cc/config/clang.go
  11. @@ -115,11 +115,15 @@ func init() {
  12.         // Turn off -Wthread-safety-negative, to avoid breaking projects that use -Weverything.
  13.         "-D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS",
  14.         "-Wno-thread-safety-negative",
  15. +
  16. +       // Stub to avoid fixing them on darwin
  17. +       "-Wno-zero-as-null-pointer-constant",
  18. +       "-Wno-tautological-constant-compare",
  19. +       "-Wdelete-non-virtual-dtor",
  20.     }, " "))
  21.  
  22.     pctx.StaticVariable("ClangExtraTargetCflags", strings.Join([]string{
  23.         "-nostdlibinc",
  24. -       "-fsanitize=local-init",
  25.     }, " "))
  26.  
  27.     pctx.StaticVariable("ClangExtraNoOverrideCflags", strings.Join([]string{
  28. diff --git a/cc/config/x86_darwin_host.go b/cc/config/x86_darwin_host.go
  29. index bb751feb..ff2b3f0d 100644
  30. --- a/cc/config/x86_darwin_host.go
  31. +++ b/cc/config/x86_darwin_host.go
  32. @@ -89,6 +89,7 @@ var (
  33.         "10.10",
  34.         "10.11",
  35.         "10.12",
  36. +       "10.13",
  37.     }
  38.  
  39.     darwinAvailableLibraries = append(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement