gn build: Don't define an action for gen_version_script on mac/win.

Nothing should depend on the action on those platforms,
as they don't use version scripts.

Should fix mac build:
http://45.33.8.238/macm1/37264/step_4.txt
This commit is contained in:
Peter Collingbourne 2022-06-13 13:52:27 -07:00
parent 99a7e307ff
commit ee21411107
1 changed files with 21 additions and 21 deletions

View File

@ -1,6 +1,7 @@
import("//compiler-rt/target.gni") import("//compiler-rt/target.gni")
template("gen_version_script") { template("gen_version_script") {
if (current_os != "mac" && current_os != "win") {
action(target_name) { action(target_name) {
script = "//compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py" script = "//compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py"
sources = [ invoker.extra ] sources = [ invoker.extra ]
@ -11,12 +12,10 @@ template("gen_version_script") {
"--extra", "--extra",
rebase_path(invoker.extra, root_build_dir), rebase_path(invoker.extra, root_build_dir),
] ]
foreach (lib_name, invoker.lib_names) { foreach(lib_name, invoker.lib_names) {
args += [ args += [ rebase_path(
rebase_path(
"$crt_current_out_dir/libclang_rt.$lib_name$crt_current_target_suffix.a", "$crt_current_out_dir/libclang_rt.$lib_name$crt_current_target_suffix.a",
root_build_dir) root_build_dir) ]
]
} }
args += [ args += [
"--nm-executable", "--nm-executable",
@ -25,4 +24,5 @@ template("gen_version_script") {
rebase_path(invoker.output, root_build_dir), rebase_path(invoker.output, root_build_dir),
] ]
} }
}
} }