summaryrefslogtreecommitdiff
path: root/compileoptions.cmake
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2018-03-10 00:12:14 (GMT)
committerGitHub <noreply@github.com>2018-03-10 00:12:14 (GMT)
commit57b215fc758737f55a7062cab277154c5b9626d4 (patch)
tree937bda4ff294551f0eb17e84e01cc99aa73f8036 /compileoptions.cmake
parentc3aef92c137658cebb111da6c856ab653316fb0a (diff)
downloadcoreclr-57b215fc758737f55a7062cab277154c5b9626d4.zip
coreclr-57b215fc758737f55a7062cab277154c5b9626d4.tar.gz
coreclr-57b215fc758737f55a7062cab277154c5b9626d4.tar.bz2
Fix build with Clang 6.0 and enable build with Clang 5.0 (#16855)
* Fix build with Clang 6.0 * Add support for clang 5.0 too
Diffstat (limited to 'compileoptions.cmake')
-rw-r--r--compileoptions.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/compileoptions.cmake b/compileoptions.cmake
index 6f9d55f..9c352e8 100644
--- a/compileoptions.cmake
+++ b/compileoptions.cmake
@@ -38,6 +38,10 @@ if (CLR_CMAKE_PLATFORM_UNIX)
# There are constants of type BOOL used in a condition. But BOOL is defined as int
# and so the compiler thinks that there is a mistake.
add_compile_options(-Wno-constant-logical-operand)
+ # We use pshpack1/2/4/8.h and poppack.h headers to set and restore packing. However
+ # clang 6.0 complains when the packing change lifetime is not contained within
+ # a header file.
+ add_compile_options(-Wno-pragma-pack)
add_compile_options(-Wno-unknown-warning-option)