diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-25 07:13:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-25 08:40:33 +0000 |
commit | 1a4fb600a6af6e163257ad422b00f890a8f62b66 (patch) | |
tree | 5be3f5587b3fc8b4bdec41125bc53b9eb4a41e90 /community/chromium/aarch64-fixes.patch | |
parent | 5db940af6587abdb7e3ca4d226ed0fec79773a88 (diff) | |
download | aports-1a4fb600a6af6e163257ad422b00f890a8f62b66.tar.bz2 aports-1a4fb600a6af6e163257ad422b00f890a8f62b66.tar.xz |
community/chromium: fix build on aarch64
Diffstat (limited to 'community/chromium/aarch64-fixes.patch')
-rw-r--r-- | community/chromium/aarch64-fixes.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/community/chromium/aarch64-fixes.patch b/community/chromium/aarch64-fixes.patch new file mode 100644 index 0000000000..589cabe0bb --- /dev/null +++ b/community/chromium/aarch64-fixes.patch @@ -0,0 +1,37 @@ +diff --git a/third_party/swiftshader/third_party/llvm-7.0/BUILD.gn b/third_party/swiftshader/third_party/llvm-7.0/BUILD.gn +index 744b0eb..32ff5a8 100644 +--- ./third_party/swiftshader/third_party/llvm-7.0/BUILD.gn ++++ ./third_party/swiftshader/third_party/llvm-7.0/BUILD.gn +@@ -55,7 +55,10 @@ config("swiftshader_llvm_private_config") { + } + + if (is_clang) { +- cflags += [ "-Wno-header-hygiene" ] ++ cflags += [ ++ "-Wno-header-hygiene", ++ "-Wno-error=header-hygiene", ++ ] + if (target_cpu == "x86" || target_cpu == "x64") { + cflags += [ "-msse2" ] + } +@@ -70,7 +73,6 @@ config("swiftshader_llvm_private_config") { + "-Wno-unused-private-field", + "-Wno-unused-result", + "-Wno-unused-variable", +- "-Wno-error=header-hygiene", + ] + + defines = [ +diff --git a/third_party/swiftshader/third_party/llvm-7.0/configs/linux/include/llvm/Config/config.h b/third_party/swiftshader/third_party/llvm-7.0/configs/linux/include/llvm/Config/config.h +index ff20611..ec22982 100644 +--- ./third_party/swiftshader/third_party/llvm-7.0/configs/linux/include/llvm/Config/config.h ++++ ./third_party/swiftshader/third_party/llvm-7.0/configs/linux/include/llvm/Config/config.h +@@ -122,7 +122,7 @@ + /* #undef HAVE_MALLCTL */ + + /* Define to 1 if you have the `mallinfo' function. */ +-#define HAVE_MALLINFO 1 ++// #define HAVE_MALLINFO 1 + + /* Define to 1 if you have the <malloc.h> header file. */ + #define HAVE_MALLOC_H 1 |