We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28ee5da commit 957c5dbCopy full SHA for 957c5db
src/tools/compiletest/src/header.rs
@@ -322,7 +322,15 @@ impl TestProps {
322
);
323
324
if let Some(flags) = config.parse_name_value_directive(ln, COMPILE_FLAGS) {
325
- self.compile_flags.extend(flags.split_whitespace().map(|s| s.to_owned()));
+ self.compile_flags.extend(
326
+ flags
327
+ .split("'")
328
+ .enumerate()
329
+ .flat_map(|(i, f)| {
330
+ if i % 2 == 1 { vec![f] } else { f.split_whitespace().collect() }
331
+ })
332
+ .map(|s| s.to_owned()),
333
+ );
334
}
335
if config.parse_name_value_directive(ln, INCORRECT_COMPILER_FLAGS).is_some() {
336
panic!("`compiler-flags` directive should be spelled `compile-flags`");
0 commit comments