Skip to content

Commit

Permalink
fix(kconfig): For Linux compatibility, ignore $(error-if statements
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung committed Aug 21, 2024
1 parent c321a9c commit 9f9e8b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kconfig/kconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ func (kp *kconfigParser) parseLine() {
return
}

// To make this package compatible with Linux, ignore error-if statements
if kp.TryConsume("$(error-if") {
_ = kp.ConsumeLine()
return
}

ident := kp.Ident()
if kp.TryConsume("=") || kp.TryConsume(":=") {
// Macro definition, see:
Expand Down

0 comments on commit 9f9e8b1

Please sign in to comment.