From cfe4ff7958f0e5954e27ad290d106adf76c933e8 Mon Sep 17 00:00:00 2001 From: loonycyborg Date: Sat, 19 Nov 2022 04:01:37 +0300 Subject: [PATCH] Explicitly request gcc for the test --- test/CXX/CXX-modules-fixture/SConstruct | 4 ++++ test/CXX/CXXMODULES-gcc.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/CXX/CXX-modules-fixture/SConstruct b/test/CXX/CXX-modules-fixture/SConstruct index ce4352a95d..8cb4bcf976 100644 --- a/test/CXX/CXX-modules-fixture/SConstruct +++ b/test/CXX/CXX-modules-fixture/SConstruct @@ -1,4 +1,8 @@ env = Environment() +try: + env.Tool(ARGUMENTS["toolset"]) +except KeyError: + pass env.Append(CXXFLAGS = ["-std=c++20"]) env['CXXMODULEPATH'] = "cxx-scons-modules" diff --git a/test/CXX/CXXMODULES-gcc.py b/test/CXX/CXXMODULES-gcc.py index 7bc7fa0373..6b0895217b 100644 --- a/test/CXX/CXXMODULES-gcc.py +++ b/test/CXX/CXXMODULES-gcc.py @@ -4,7 +4,7 @@ test.dir_fixture("CXX-modules-fixture") -test.run(arguments = ".") +test.run(arguments = ". toolset=g++") test.pass_test()