From 37f0c6b7481390454c231645789cd703931182f5 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 28 May 2024 01:55:50 +0200 Subject: [PATCH] cmake: never use strict aliasing --- cmake/DaemonFlags.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/DaemonFlags.cmake b/cmake/DaemonFlags.cmake index cad39176ef..cface099a9 100644 --- a/cmake/DaemonFlags.cmake +++ b/cmake/DaemonFlags.cmake @@ -183,6 +183,7 @@ elseif (NACL) set_cxx_flag("-std=gnu++14") set_c_cxx_flag("-ffast-math") + set_c_cxx_flag("-fno-strict-aliasing") set_c_cxx_flag("-fvisibility=hidden") set_c_cxx_flag("-stdlib=libc++") set_c_cxx_flag("--pnacl-allow-exceptions")