Skip to content

Commit 1afc1e2

Browse files
committed
Fix compiling on MacOS
[why] For a time we got warnings, after the latest xcode update they turned into errors, of the form: error "_LIBCPP_ENABLE_ASSERTIONS has been removed, please use _LIBCPP_HARDENING_MODE instead" [how] Turning LIBCPP assertions off as suggested by still open Issue in Meson: https://www.github.com/mesonbuild/meson/issues/13978 Suggested-by: Lars Froehlich <lars.froehlich@desy.de> Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
1 parent 6016c29 commit 1afc1e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ version_cc = configure_file(
4242
so_version = lib_version_num
4343

4444
add_cpp_args = [ ]
45+
if build_machine.system() == 'darwin'
46+
add_cpp_args += [ '-U_LIBCPP_ENABLE_ASSERTIONS' ]
47+
endif
4548
if meson.get_compiler('cpp').has_argument('-Wshadow') # msvc doesnt have
4649
add_cpp_args += [ '-Wshadow' ]
4750
endif

0 commit comments

Comments
 (0)