mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 01:36:09 +03:00
build: Support MIPS -mtune= flag
This commit is contained in:
parent
8ee7d61474
commit
3f04f77798
@ -963,6 +963,9 @@ config("compiler_cpu_abi") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cflags += [ "-m${mips_float_abi}-float" ]
|
cflags += [ "-m${mips_float_abi}-float" ]
|
||||||
|
if (mips_tune != "") {
|
||||||
|
cflags += [ "-mtune=${mips_tune}" ]
|
||||||
|
}
|
||||||
} else if (current_cpu == "mips" && !is_nacl) {
|
} else if (current_cpu == "mips" && !is_nacl) {
|
||||||
ldflags += [ "-Wl,--hash-style=sysv" ]
|
ldflags += [ "-Wl,--hash-style=sysv" ]
|
||||||
if (custom_toolchain == "") {
|
if (custom_toolchain == "") {
|
||||||
@ -1008,6 +1011,9 @@ config("compiler_cpu_abi") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cflags += [ "-m${mips_float_abi}-float" ]
|
cflags += [ "-m${mips_float_abi}-float" ]
|
||||||
|
if (mips_tune != "") {
|
||||||
|
cflags += [ "-mtune=${mips_tune}" ]
|
||||||
|
}
|
||||||
} else if (current_cpu == "mips64el") {
|
} else if (current_cpu == "mips64el") {
|
||||||
cflags += [ "-D__SANE_USERSPACE_TYPES__" ]
|
cflags += [ "-D__SANE_USERSPACE_TYPES__" ]
|
||||||
ldflags += [ "-Wl,--hash-style=sysv" ]
|
ldflags += [ "-Wl,--hash-style=sysv" ]
|
||||||
|
@ -11,6 +11,7 @@ import("//build/config/v8_target_cpu.gni")
|
|||||||
declare_args() {
|
declare_args() {
|
||||||
# MIPS MultiMedia Instruction compilation flag.
|
# MIPS MultiMedia Instruction compilation flag.
|
||||||
mips_use_mmi = false
|
mips_use_mmi = false
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (current_cpu == "mipsel" || v8_current_cpu == "mipsel" ||
|
if (current_cpu == "mipsel" || v8_current_cpu == "mipsel" ||
|
||||||
@ -42,6 +43,9 @@ if (current_cpu == "mipsel" || v8_current_cpu == "mipsel" ||
|
|||||||
# "fp64": sets the GCC -mfp64 option.
|
# "fp64": sets the GCC -mfp64 option.
|
||||||
# "fpxx": sets the GCC -mfpxx option.
|
# "fpxx": sets the GCC -mfpxx option.
|
||||||
mips_fpu_mode = "fp32"
|
mips_fpu_mode = "fp32"
|
||||||
|
|
||||||
|
# Examples: "24kc", "74kc"
|
||||||
|
mips_tune = ""
|
||||||
}
|
}
|
||||||
} else if (current_cpu == "mips64el" || v8_current_cpu == "mips64el" ||
|
} else if (current_cpu == "mips64el" || v8_current_cpu == "mips64el" ||
|
||||||
current_cpu == "mips64" || v8_current_cpu == "mips64") {
|
current_cpu == "mips64" || v8_current_cpu == "mips64") {
|
||||||
|
Loading…
Reference in New Issue
Block a user