summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules/HandleLLVMOptions.cmake
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-04-21 22:29:38 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-04-21 22:29:38 +0000
commit84e55fc5f23330b9aaa4cfcc1d1883c982a308df (patch)
tree2d6673d13751940da346bb73a6d9875bb90bd5b0 /llvm/cmake/modules/HandleLLVMOptions.cmake
parent4e192df778a96fedbee93799af64cd7a0d2fa0bb (diff)
downloadbcm5719-llvm-84e55fc5f23330b9aaa4cfcc1d1883c982a308df.tar.gz
bcm5719-llvm-84e55fc5f23330b9aaa4cfcc1d1883c982a308df.zip
Silence MSVC build alignment warnings
llvm-svn: 235450
Diffstat (limited to 'llvm/cmake/modules/HandleLLVMOptions.cmake')
-rw-r--r--llvm/cmake/modules/HandleLLVMOptions.cmake10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 27147dcfd29..71a1902dcdd 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -304,7 +304,15 @@ if( MSVC )
-wd4611 # Suppress 'interaction between '_setjmp' and C++ object destruction is non-portable'
-wd4805 # Suppress 'unsafe mix of type <type> and type <type> in operation'
-wd4204 # Suppress 'nonstandard extension used : non-constant aggregate initializer'
-
+
+ # Idelly, we'd like this warning to be enabled, but MSVC 2013 doesn't
+ # support the 'aligned' attribute in the way that clang sources requires (for
+ # any code that uses the LLVM_ALIGNAS marco), so this is must be disabled to
+ # avoid unwanted alignment warnings.
+ # When we switch to requiring a version of MSVC that supports the 'alignas'
+ # specifier (MSVC 2015?) this warning can be re-enabled.
+ -wd4324 # Suppress 'structure was padded due to __declspec(align())'
+
# Promoted warnings.
-w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning.
OpenPOWER on IntegriCloud