| Index: build/config/compiler/BUILD.gn
|
| diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
| index 6b1e8979e35fe5f1352ff36680b6cb79ddcf7525..30452105c66147befdba258318244dbddacc2dcb 100644
|
| --- a/build/config/compiler/BUILD.gn
|
| +++ b/build/config/compiler/BUILD.gn
|
| @@ -450,6 +450,30 @@ config("compiler_cpu_abi") {
|
| ]
|
| ldflags += [ "-mips64r2" ]
|
| }
|
| + } else if (current_cpu == "pnacl" && is_nacl_nonsfi) {
|
| + if (target_cpu == "x86" || target_cpu == "x64") {
|
| + cflags += [
|
| + "-arch",
|
| + "x86-32-nonsfi",
|
| + "--pnacl-bias=x86-32-nonsfi",
|
| + "--target=i686-unknown-nacl",
|
| + ]
|
| + ldflags += [
|
| + "-arch",
|
| + "x86-32-nonsfi",
|
| + "--target=i686-unknown-nacl",
|
| + ]
|
| + } else if (target_cpu == "arm") {
|
| + cflags += [
|
| + "-arch",
|
| + "arm-nonsfi",
|
| + "--pnacl-bias=arm-nonsfi",
|
| + ]
|
| + ldflags += [
|
| + "-arch",
|
| + "arm-nonsfi",
|
| + ]
|
| + }
|
| }
|
| }
|
|
|
| @@ -758,6 +782,18 @@ config("default_warnings") {
|
| "-Wno-bitfield-width",
|
| ]
|
| }
|
| +
|
| + if (is_nacl_nonsfi) {
|
| + cflags += [
|
| + # TODO(phosek): There are number of platform specific functions in
|
| + # seccomp-bpf syscall helpers which need to be wrapped in appropriate
|
| + # macro checks.
|
| + "-Wno-unused-function",
|
| +
|
| + # TODO(phosek): Enable this after fixing NaCl IRT.
|
| + "-Wno-sign-compare",
|
| + ]
|
| + }
|
| }
|
| }
|
|
|
|
|