Skip to content

Commit

Permalink
Update BUILD.gn
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex313031 authored Jun 25, 2022
1 parent 4bcf109 commit 26d72f5
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1187,13 +1187,11 @@ config("compiler_cpu_abi") {
ldflags += [ "-m64" ]
}
} else if (current_cpu == "riscv64") {
cflags += [
"-mabi=lp64d",
"--target=riscv64-linux-gnu",
]
ldflags += [
"--target=riscv64-linux-gnu",
]
if (is_clang) {
cflags += [ "--target=riscv64-linux-gnu" ]
ldflags += [ "--target=riscv64-linux-gnu" ]
}
cflags += [ "-mabi=lp64d" ]
} else if (current_cpu == "s390x") {
cflags += [ "-m64" ]
ldflags += [ "-m64" ]
Expand Down Expand Up @@ -1563,15 +1561,6 @@ config("default_warnings") {
cflags += [ "-Wno-unqualified-std-cast-call" ]
}

if (!is_nacl && !(is_chromeos ||
default_toolchain == "//build/toolchain/cros:target")) {
# TODO(https://crbug.com/1322823): Remove flags once potential miscompile is investigated.
cflags += [
"-Xclang",
"-no-opaque-pointers",
]
}

if (is_fuchsia) {
# TODO(https://bugs.chromium.org/p/fuchsia/issues/detail?id=77383)
cflags += [ "-Wno-deprecated-copy" ]
Expand Down

0 comments on commit 26d72f5

Please sign in to comment.