mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
[windows] Add CGO_CXXFLAGS
This commit is contained in:
parent
67611d5ae7
commit
62bfe953a1
1 changed files with 8 additions and 1 deletions
|
|
@ -265,6 +265,14 @@ func (b *BaseBuilder) CompileProject(options *Options) error {
|
|||
v += "-I" + buildBaseDir
|
||||
return v
|
||||
})
|
||||
// Use upsertEnv so we don't overwrite user's CGO_CXXFLAGS
|
||||
cmd.Env = upsertEnv(cmd.Env, "CGO_CXXFLAGS", func(v string) string {
|
||||
if v != "" {
|
||||
v += " "
|
||||
}
|
||||
v += "-I" + buildBaseDir
|
||||
return v
|
||||
})
|
||||
|
||||
cmd.Env = upsertEnv(cmd.Env, "GOOS", func(v string) string {
|
||||
return options.Platform
|
||||
|
|
@ -430,7 +438,6 @@ func (b *BaseBuilder) NpmRunWithEnvironment(projectDir, buildTarget string, verb
|
|||
// BuildFrontend executes the `npm build` command for the frontend directory
|
||||
func (b *BaseBuilder) BuildFrontend(outputLogger *clilogger.CLILogger) error {
|
||||
|
||||
// TODO: Fix this up from the CLI
|
||||
verbose := b.options.Verbosity == VERBOSE
|
||||
|
||||
frontendDir := filepath.Join(b.projectData.Path, "frontend")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue