diff --git a/meson.build b/meson.build index a9a58266f815c19663684d4e487ccf3fc6795527..6be8efa14373c4f1db2c1d1e0f64623862e3f5ac 100644 --- a/meson.build +++ b/meson.build @@ -50,7 +50,6 @@ cpp_is_clang = cpp_compiler.get_id() == 'clang' if cpp_is_clang # Clang does not know "__attribute__((optimize(-no-omit-frame-pointer)))". add_project_arguments('-Wno-unknown-attributes', language: 'cpp') - conf_data.set('EMPER_BUILD_WITH_CLANG') endif continuation_stealing_mode = get_option('continuation_stealing_mode') @@ -69,6 +68,7 @@ conf_data.set('EMPER_SET_AFFINITY_ON_BLOCK', get_option('set_affinity_on_block') conf_data.set('EMPER_IO_COMPLETER_SCHED_PARAM', get_option('io_completer_sched_param')) conf_data.set('EMPER_CONTINUATION_STEALING_MODE', continuation_stealing_mode) conf_data.set('EMPER_CONTINUATION_STEALING_MADVISE_STACK', get_option('continuation_stealing_madvise_stack')) +conf_data.set('EMPER_BUILD_WITH_CLANG', cpp_is_clang) if continuation_stealing_mode == 'locked' and not locked_ws_queue error('*Locked* continuation stealing only works with locked work-stealing queues (locked_ws_queue=true)')