aboutsummaryrefslogtreecommitdiff
path: root/build/root.build
diff options
context:
space:
mode:
Diffstat (limited to 'build/root.build')
-rw-r--r--build/root.build9
1 files changed, 4 insertions, 5 deletions
diff --git a/build/root.build b/build/root.build
index 5129a40..839e423 100644
--- a/build/root.build
+++ b/build/root.build
@@ -2,15 +2,14 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-using cxx.guess
-
-if ($force_modules != true && $cxx.id == 'clang')
- cxx.features.modules = false
-
cxx.std = experimental
+cxx.features.modules = ($force_modules == true)
using cxx
+if ($force_modules == true && !$cxx.features.modules)
+ fail 'c++ compiler does not support modules'
+
mxx{*}: extension = mxx
hxx{*}: extension = hxx
ixx{*}: extension = ixx