diff options
author | Petr Bred <bredpetr@gmail.com> | 2018-07-04 21:09:02 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-07-04 21:09:02 +0300 |
commit | 59c778d6b83e3159db5184dda18e813e85d4cc77 (patch) | |
tree | bf028e7b60ff21f712377523e2f794b47a9e7182 /src/Native | |
parent | 51e9932784b8894413e3a49efeadf42377d10ab2 (diff) |
[Linux] Fix build for new clang versions (#6047)
Signed-off-by: Petr Bred <bredpetr@gmail.com>
Diffstat (limited to 'src/Native')
-rw-r--r-- | src/Native/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Native/CMakeLists.txt b/src/Native/CMakeLists.txt index 475bf7113..1a3622a0d 100644 --- a/src/Native/CMakeLists.txt +++ b/src/Native/CMakeLists.txt @@ -95,6 +95,9 @@ if (CLR_CMAKE_PLATFORM_UNIX) add_compile_options(-Wno-null-arithmetic) add_compile_options(-Wno-null-conversion) + # Since 6 version, clang generates pragma-pack warnings, so disable it because we use pshpack[1..8].h/poppack.h + add_compile_options(-Wno-pragmas) + if(CLR_CMAKE_PLATFORM_ARCH_AMD64 OR CLR_CMAKE_PLATFORM_ARCH_I386) # Allow 16 byte compare-exchange add_compile_options(-mcx16) |