Skip to content

Commit 2fd815b

Browse files
committed
Force warning level to all if a library is being modified
1 parent 96f366d commit 2fd815b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

phases/libraries_builder.go

+8
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,16 @@ func fixLDFLAGforPrecompiledLibraries(ctx *types.Context, libraries []*types.Lib
9898

9999
func compileLibraries(ctx *types.Context, libraries []*types.Library, buildPath string, buildProperties properties.Map, includes []string) ([]string, error) {
100100
objectFiles := []string{}
101+
warningLevelToBeRestored := ctx.WarningsLevel
102+
101103
for _, library := range libraries {
104+
if library.IsBeingModified {
105+
ctx.WarningsLevel = "all"
106+
}
102107
libraryObjectFiles, err := compileLibrary(ctx, library, buildPath, buildProperties, includes)
108+
if library.IsBeingModified {
109+
ctx.WarningsLevel = warningLevelToBeRestored
110+
}
103111
if err != nil {
104112
return nil, i18n.WrapError(err)
105113
}

0 commit comments

Comments
 (0)