summaryrefslogtreecommitdiffstats
path: root/third_party/usrsctp
diff options
context:
space:
mode:
authorGordana.Cmiljanovic <Gordana.Cmiljanovic@imgtec.com>2015-04-28 01:17:16 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-28 08:17:18 +0000
commit85746ff1e58b5695f15e61ff5fde46c64d22b4ca (patch)
treeab0cc162d960e68a4ff1f4c62e7a628378ec3616 /third_party/usrsctp
parent84c468567142e212b6c07ffc12458d9e5a797192 (diff)
downloadchromium_src-85746ff1e58b5695f15e61ff5fde46c64d22b4ca.zip
chromium_src-85746ff1e58b5695f15e61ff5fde46c64d22b4ca.tar.gz
chromium_src-85746ff1e58b5695f15e61ff5fde46c64d22b4ca.tar.bz2
GN: Fix gn gen/compile errors for MIPS
Fixing two errors: - ERROR Unresolved dependencies. //:gn_only(//build/toolchain/linux:mipsel) needs //third_party/libjpeg_turbo:simd_asm(//build/toolchain/linux:mipsel) by including //third_party/libjpeg_turbo:simd_asm target only for x86 and x64, where it exists - incompatible pointer types in usrsctp by ignoring warnings for this module TEST=gn gen out/mips-linux --args="is_debug=false target_os=\"linux\" target_cpu=\"mipsel\" is_clang=false" ninja -C out/mips-linux/ chrome Review URL: https://codereview.chromium.org/1094793004 Cr-Commit-Position: refs/heads/master@{#327245}
Diffstat (limited to 'third_party/usrsctp')
-rw-r--r--third_party/usrsctp/BUILD.gn5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/usrsctp/BUILD.gn b/third_party/usrsctp/BUILD.gn
index 45567e2..3e3cabb 100644
--- a/third_party/usrsctp/BUILD.gn
+++ b/third_party/usrsctp/BUILD.gn
@@ -122,6 +122,11 @@ static_library("usrsctp") {
if (is_clang) {
cflags = [ "-Wno-incompatible-pointer-types" ]
+ } else if (target_cpu == "mipsel") {
+ # mipsel is still using gcc (4.9),
+ # which does not support "-Wno-incompatible-pointer-types"
+ # so let's disable all warnings for this module.
+ cflags = [ "-w" ]
}
deps = [