Skip to content

Commit

Permalink
gn build: Disable ubsan build on mac/win.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcc committed Jun 13, 2022
1 parent e406252 commit 6ef9af6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 4 additions & 4 deletions llvm/utils/gn/secondary/compiler-rt/lib/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
}
}
9 changes: 3 additions & 6 deletions llvm/utils/gn/secondary/compiler-rt/lib/ubsan/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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) ]
}

0 comments on commit 6ef9af6

Please sign in to comment.