gn build: Disable ubsan build on mac/win.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 13 Jun 2022 20:43:56 +0000 (13:43 -0700)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 13 Jun 2022 20:45:14 +0000 (13:45 -0700)
Build failures:
http://45.33.8.238/macm1/37263/step_4.txt
http://45.33.8.238/win/60034/step_4.txt

llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
llvm/utils/gn/secondary/compiler-rt/lib/ubsan/BUILD.gn

index 62d3270..92bd37f 100644 (file)
@@ -19,9 +19,9 @@ group("lib") {
     deps += [ "//compiler-rt/lib/builtins" ]
   }
   if (current_os != "baremetal") {
-    deps += [
-      "//compiler-rt/lib/profile",
-      "//compiler-rt/lib/ubsan:ubsan_shared",
-    ]
+    deps += [ "//compiler-rt/lib/profile" ]
+  }
+  if (current_os != "win" && current_os != "mac" && current_os != "baremetal") {
+    deps += [ "//compiler-rt/lib/ubsan:ubsan_shared" ]
   }
 }
index 50ed1be..af47149 100644 (file)
@@ -124,11 +124,8 @@ shared_library("ubsan_shared") {
     ":cxx_sources",
     ":sources",
     ":standalone_sources",
+    ":version_script",
   ]
-  if (current_os != "mac" && current_os != "win") {
-    deps += [ ":version_script" ]
-    inputs = [ "$target_gen_dir/ubsan.vers" ]
-    ldflags =
-        [ "-Wl,--version-script," + rebase_path(inputs[0], root_build_dir) ]
-  }
+  inputs = [ "$target_gen_dir/ubsan.vers" ]
+  ldflags = [ "-Wl,--version-script," + rebase_path(inputs[0], root_build_dir) ]
 }