forked from OSchip/llvm-project
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:
parent
99a7e307ff
commit
ee21411107
|
@ -1,28 +1,28 @@
|
||||||
import("//compiler-rt/target.gni")
|
import("//compiler-rt/target.gni")
|
||||||
|
|
||||||
template("gen_version_script") {
|
template("gen_version_script") {
|
||||||
action(target_name) {
|
if (current_os != "mac" && current_os != "win") {
|
||||||
script = "//compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py"
|
action(target_name) {
|
||||||
sources = [ invoker.extra ]
|
script = "//compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py"
|
||||||
deps = invoker.libs
|
sources = [ invoker.extra ]
|
||||||
outputs = [ invoker.output ]
|
deps = invoker.libs
|
||||||
args = [
|
outputs = [ invoker.output ]
|
||||||
"--version-list",
|
args = [
|
||||||
"--extra",
|
"--version-list",
|
||||||
rebase_path(invoker.extra, root_build_dir),
|
"--extra",
|
||||||
]
|
rebase_path(invoker.extra, root_build_dir),
|
||||||
foreach (lib_name, invoker.lib_names) {
|
]
|
||||||
|
foreach(lib_name, invoker.lib_names) {
|
||||||
|
args += [ rebase_path(
|
||||||
|
"$crt_current_out_dir/libclang_rt.$lib_name$crt_current_target_suffix.a",
|
||||||
|
root_build_dir) ]
|
||||||
|
}
|
||||||
args += [
|
args += [
|
||||||
rebase_path(
|
"--nm-executable",
|
||||||
"$crt_current_out_dir/libclang_rt.$lib_name$crt_current_target_suffix.a",
|
"nm",
|
||||||
root_build_dir)
|
"-o",
|
||||||
]
|
rebase_path(invoker.output, root_build_dir),
|
||||||
|
]
|
||||||
}
|
}
|
||||||
args += [
|
|
||||||
"--nm-executable",
|
|
||||||
"nm",
|
|
||||||
"-o",
|
|
||||||
rebase_path(invoker.output, root_build_dir),
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue