Skip to content

Commit

Permalink
compiler: Fix pkg.source_files compiler flags
Browse files Browse the repository at this point in the history
This fixes the issue: #517
  • Loading branch information
m-gorecki committed Jul 26, 2023
1 parent c719fde commit a138e52
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions newt/toolchain/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,15 @@ func (c *Compiler) includesStrings() []string {

func (c *Compiler) cflagsStrings() []string {
cflags := util.SortFields(c.info.Cflags...)

for _, lclinfo_flag := range util.SortFields(c.lclInfo.Cflags...) {
for _, info_flag := range cflags {
if lclinfo_flag == info_flag {
continue
}
}
cflags = append(cflags, lclinfo_flag)
}
return cflags
}

Expand Down

0 comments on commit a138e52

Please sign in to comment.