Skip to content

Commit

Permalink
Force warning level to all if a library is being modified
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Oct 9, 2018
1 parent 96f366d commit 2fd815b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions phases/libraries_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,16 @@ func fixLDFLAGforPrecompiledLibraries(ctx *types.Context, libraries []*types.Lib

func compileLibraries(ctx *types.Context, libraries []*types.Library, buildPath string, buildProperties properties.Map, includes []string) ([]string, error) {
objectFiles := []string{}
warningLevelToBeRestored := ctx.WarningsLevel

for _, library := range libraries {
if library.IsBeingModified {
ctx.WarningsLevel = "all"
}
libraryObjectFiles, err := compileLibrary(ctx, library, buildPath, buildProperties, includes)
if library.IsBeingModified {
ctx.WarningsLevel = warningLevelToBeRestored
}
if err != nil {
return nil, i18n.WrapError(err)
}
Expand Down

0 comments on commit 2fd815b

Please sign in to comment.