Only use -ftemplate-depth for Clang on Linux, because clang-cl doesn't like it (and Mac doesn't need it)

This commit is contained in:
Peter Dimov
2024-12-22 03:20:39 +02:00
parent 7c64abd41c
commit 183aea23a9

View File

@ -148,5 +148,5 @@ run variant_index_type.cpp : : :
<variant>release
<toolset>msvc,<address-model>32:<build>no
<toolset>msvc-14.0:<build>no # fails on GHA (only) with "out of heap space"
<toolset>clang:<cxxflags>-ftemplate-depth=1024
<toolset>clang,<target-os>linux:<cxxflags>-ftemplate-depth=1024 # for Clang 3.x
;