aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-05 15:31:11 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-05 15:31:11 -0600
commit943f6886ca150a5852fb336791cab9f045c47433 (patch)
tree6def671667ed030d269f48f20b9c20f1717f41c4 /src
parentd24fa2e2c2309b8e32231364e49edbb5ebd53da4 (diff)
downloadmakers-943f6886ca150a5852fb336791cab9f045c47433.tar.gz
makers-943f6886ca150a5852fb336791cab9f045c47433.zip
detect conditionals with leading spaces
Diffstat (limited to 'src')
-rw-r--r--src/makefile/conditional.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/makefile/conditional.rs b/src/makefile/conditional.rs
index 149638e..4490e8c 100644
--- a/src/makefile/conditional.rs
+++ b/src/makefile/conditional.rs
@@ -85,6 +85,7 @@ impl Line {
line: &str,
expand_macro: impl Fn(&TokenString) -> Result<String>,
) -> Result<Option<Self>> {
+ let line = line.trim_start();
Ok(Some(if let Some(line) = line.strip_prefix("ifeq ") {
match decode_condition_args(line) {
Some((arg1, arg2)) => Self::IfEqual(arg1, arg2),