main: configure default GC in target JSON file

This commit is contained in:
Ayke van Laethem
2018-11-28 17:33:16 +01:00
parent 05d70d288d
commit e817bd38ec
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -36,6 +36,9 @@ type BuildConfig struct {
// Helper function for Compiler object.
func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, action func(string) error) error {
if config.gc == "" && spec.GC != "" {
config.gc = spec.GC
}
compilerConfig := compiler.Config{
Triple: spec.Triple,
GC: config.gc,