Skip to content

Commit 1e8eee9

Browse files
committed
cmake: Add platform-specific compiler flags
1 parent 471e26a commit 1e8eee9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ if(WIN32)
139139
_WINDOWS
140140
_MT
141141
)
142+
# Avoid the use of aligned vector instructions when building for Windows.
143+
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412.
144+
try_append_cxx_flags("-Wa,-muse-unaligned-vector-move" TARGET core)
142145
try_append_linker_flag("-static" TARGET core)
143146
# We require Windows 7 (NT 6.1) or later.
144147
try_append_linker_flag("-Wl,--major-subsystem-version,6" TARGET core)

0 commit comments

Comments
 (0)