Skip to content

Setting environment variables. #37

Description

@eddiewebb

I'm sorry, there is likely something obvious im missing...

My project has to set CGO_LDFLAGS_ALLOW to handle a dependent library. I can find no way to set that at a per-project level in my project config outside of re-defining the entire builder system in my project settings..

MYProject.sublime-project:

{
	"folders":
	[
		{
			"path": "/Users/eddie/Development/studio-light"
		}
	],
	"settings":{
		"env": {
			"CGO_LDFLAGS_ALLOW":"-fconstant-cfstrings",
		},
		"CGO_LDFLAGS_ALLOW":"-fconstant-cfstrings",
		"golang":{
			"CGO_LDFLAGS_ALLOW":"-fconstant-cfstrings",
			"env": {
				"CGO_LDFLAGS_ALLOW":"-fconstant-cfstrings",
			},
		}
	},
	// This overrides go build completely, not what I want. Excluding cmd throws an error.
	"build_systems":[
		{		
			"name":"Go",
			"cmd":"go",
			"env": {
				"CGO_LDFLAGS_ALLOW":"-fconstant-cfstrings",
			}
		}
	]

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions