File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 21
21
#include " testing/file_test/file_test_base.h"
22
22
#include " toolchain/driver/driver.h"
23
23
24
- // A flag specified by a test prelude to indicate the intention to include the
25
- // full production prelude.
26
- constexpr static llvm::StringLiteral ExpectFullPreludeFlag =
27
- " --expect-full-prelude" ;
28
-
29
24
namespace Carbon ::Testing {
30
25
namespace {
31
26
@@ -127,9 +122,11 @@ auto ToolchainFileTest::Run(
127
122
filtered_test_args.reserve (test_args.size ());
128
123
bool found_prelude_flag = false ;
129
124
for (auto arg : test_args) {
130
- bool custom_core = arg == " --custom-core" ;
131
- bool full_prelude = arg == ExpectFullPreludeFlag;
132
- if (custom_core || full_prelude) {
125
+ bool driver_flag = arg == " --custom-core" || arg == " --no-prelude-import" ;
126
+ // A flag specified by a test prelude to indicate the intention to include
127
+ // the full production prelude.
128
+ bool full_prelude = arg == " --expect-full-prelude" ;
129
+ if (driver_flag || full_prelude) {
133
130
found_prelude_flag = true ;
134
131
}
135
132
if (!full_prelude) {
You can’t perform that action at this time.
0 commit comments