28 lines
752 B
Plaintext
28 lines
752 B
Plaintext
|
|
import("//build/userland/USERLAND_FLAGS.gni")
|
||
|
|
import("//toolchains/COMPILERS.gni")
|
||
|
|
|
||
|
|
if (uland_ld_flags == []) {
|
||
|
|
port_ld_flags = [ "__EMPTY__" ]
|
||
|
|
} else {
|
||
|
|
port_ld_flags = uland_ld_flags
|
||
|
|
}
|
||
|
|
|
||
|
|
py_bridging_args = [
|
||
|
|
# outpath here is inserted
|
||
|
|
rebase_path("//", root_build_dir), # rootdir
|
||
|
|
"$target_arch", # target cpu
|
||
|
|
"$host", # host compiler
|
||
|
|
string_join(" ",
|
||
|
|
[
|
||
|
|
toolchain_ar,
|
||
|
|
toolchain_cc,
|
||
|
|
toolchain_cxx,
|
||
|
|
toolchain_ld,
|
||
|
|
toolchain_asm,
|
||
|
|
toolchain_target,
|
||
|
|
]), # compiler_toolchain
|
||
|
|
string_join(" ", uland_c_flags), # c_flags
|
||
|
|
string_join(" ", uland_cc_flags), # cc_flags
|
||
|
|
string_join(" ", port_ld_flags), # ld_flags
|
||
|
|
]
|