From b14b99d8cd2dba278ac7d3eb79310cdec7d0582d Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flow@cs.fau.de>
Date: Fri, 4 Feb 2022 19:24:06 +0100
Subject: [PATCH] Intermediate Commit (2022-02-04 19:24)

---
 emper/Emper.hpp | 2 +-
 meson.build     | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/emper/Emper.hpp b/emper/Emper.hpp
index 985f190c..64fda316 100644
--- a/emper/Emper.hpp
+++ b/emper/Emper.hpp
@@ -264,7 +264,7 @@ static const enum ContinuationStealingMadviseStack CONTINUATION_STEALING_MADVISE
 		ContinuationStealingMadviseStack::EMPER_CONTINUATION_STEALING_MADVISE_STACK;
 
 static const bool BUILD_WITH_CLANG =
-#ifdef __clang__
+#ifdef EMPER_BUILD_WITH_CLANG
 		true
 #else
 		false
diff --git a/meson.build b/meson.build
index 5c74117e..a9a58266 100644
--- a/meson.build
+++ b/meson.build
@@ -46,9 +46,11 @@ cpp_compiler = meson.get_compiler('cpp')
 if cpp_compiler.has_header('compare')
   conf_data.set('EMPER_HAS_COMPARE_H', true)
 endif
-if cpp_compiler.get_id() == 'clang'
+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')
-- 
GitLab