aboutsummaryrefslogtreecommitdiff
path: root/build2/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-27 11:42:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-27 11:42:35 +0200
commit0d34b2f7692aba066213c038b810623c216b6980 (patch)
tree9c2d5db91cf075b84307957a8d9d3d10b1773a90 /build2/buildfile
parent6324239cf260f82312143a83855eb53bdc890a70 (diff)
Add {c,cxx}.class variables
Compiler class describes a set of compilers that follow more or less the same command line interface. Compilers that don't belong to any of the existing classes are in classes of their own (say, Sun CC would be on its own if we were to support it). Currently defined compiler classes: gcc gcc, clang, clang-apple, icc (on non-Windows) msvc msvc, clang-cl, icc (Windows)
Diffstat (limited to 'build2/buildfile')
-rw-r--r--build2/buildfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/buildfile b/build2/buildfile
index ce75f07..9294738 100644
--- a/build2/buildfile
+++ b/build2/buildfile
@@ -28,7 +28,7 @@ else
else
stack_size = 4194304 # 4M
- if ($cxx.id == 'msvc')
+ if ($cxx.class == 'msvc')
cxx.loptions += "/STACK:$stack_size"
else
cxx.loptions += "-Wl,--stack,$stack_size"