| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 830b0aa7b2251d8867020561f8630fa458f35e4e..4ce96fa79b65cc8d67a44de4d49f4cef866549bd 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -505,14 +505,8 @@ config("compiler_cpu_abi") {
|
| }
|
| } else if (current_cpu == "arm") {
|
| if (is_clang && !is_android && !is_nacl) {
|
| - cflags += [
|
| - "-target",
|
| - "arm-linux-gnueabihf",
|
| - ]
|
| - ldflags += [
|
| - "-target",
|
| - "arm-linux-gnueabihf",
|
| - ]
|
| + cflags += [ "--target=arm-linux-gnueabihf" ]
|
| + ldflags += [ "--target=arm-linux-gnueabihf" ]
|
| }
|
| if (!is_nacl) {
|
| cflags += [
|
| @@ -534,14 +528,10 @@ config("compiler_cpu_abi") {
|
| if (mips_arch_variant == "r6") {
|
| if (is_clang) {
|
| cflags += [
|
| - "-target",
|
| - "mipsel-linux-gnu",
|
| + "--target=mipsel-linux-gnu",
|
| "-march=mips32r6",
|
| ]
|
| - ldflags += [
|
| - "-target",
|
| - "mipsel-linux-gnu",
|
| - ]
|
| + ldflags += [ "--target=mipsel-linux-gnu" ]
|
| } else {
|
| cflags += [
|
| "-mips32r6",
|
| @@ -558,26 +548,18 @@ config("compiler_cpu_abi") {
|
| if (is_clang) {
|
| if (is_android) {
|
| cflags += [
|
| - "-target",
|
| - "mipsel-linux-android",
|
| + "--target=mipsel-linux-android",
|
| "-march=mipsel",
|
| "-mcpu=mips32r2",
|
| ]
|
| - ldflags += [
|
| - "-target",
|
| - "mipsel-linux-android",
|
| - ]
|
| + ldflags += [ "--target=mipsel-linux-android" ]
|
| } else {
|
| cflags += [
|
| - "-target",
|
| - "mipsel-linux-gnu",
|
| + "--target=mipsel-linux-gnu",
|
| "-march=mipsel",
|
| "-mcpu=mips32r2",
|
| ]
|
| - ldflags += [
|
| - "-target",
|
| - "mipsel-linux-gnu",
|
| - ]
|
| + ldflags += [ "--target=mipsel-linux-gnu" ]
|
| }
|
| } else {
|
| cflags += [
|
| @@ -592,26 +574,18 @@ config("compiler_cpu_abi") {
|
| if (is_clang) {
|
| if (is_android) {
|
| cflags += [
|
| - "-target",
|
| - "mipsel-linux-android",
|
| + "--target=mipsel-linux-android",
|
| "-march=mipsel",
|
| "-mcpu=mips32",
|
| ]
|
| - ldflags += [
|
| - "-target",
|
| - "mipsel-linux-android",
|
| - ]
|
| + ldflags += [ "--target=mipsel-linux-android" ]
|
| } else {
|
| cflags += [
|
| - "-target",
|
| - "mipsel-linux-gnu",
|
| + "--target=mipsel-linux-gnu",
|
| "-march=mipsel",
|
| "-mcpu=mips32",
|
| ]
|
| - ldflags += [
|
| - "-target",
|
| - "mipsel-linux-gnu",
|
| - ]
|
| + ldflags += [ "--target=mipsel-linux-gnu" ]
|
| }
|
| } else {
|
| cflags += [
|
|
|