Make GC mode the default.

This commit is contained in:
Greg 2019-06-19 14:29:24 -04:00
parent 4aa1211d73
commit b5773b5525
4 changed files with 5 additions and 12 deletions

View File

@ -44,5 +44,3 @@ subclasses:
frameworks: [ Foundation, AppKit ]
pragma: [ clang diagnostic ignored "-Wformat-security" ]
#autorelease: true
gogc: true

View File

@ -39,4 +39,3 @@ delegates:
- peripheralDidUpdateValueForCharacteristic
pragma: [ clang diagnostic ignored "-Wformat-security" ]
gogc: true

View File

@ -16,4 +16,3 @@ functions:
frameworks:
- Foundation
pragma: [ clang diagnostic ignored "-Wformat-security" ]
gogc: true

13
main.go
View File

@ -39,7 +39,6 @@ type conf struct {
//Arc flag for debugging only, builds will break
Arc bool
Autorelease bool
Gogc bool
}
var Config conf
@ -251,19 +250,17 @@ func Start() (err error) {
if Config.Positions {
ast.TrackPositions = true
}
if Config.Gogc && Config.Autorelease {
fmt.Printf("Cannot use Autorelease and Gogc directives at the same time\n")
os.Exit(-1)
}
wrap.Gogc = true
if Config.Arc {
wrap.Arc = true
wrap.Gogc = false
}
if Config.Autorelease {
wrap.Autorelease = true
wrap.Gogc = false
}
if Config.Gogc {
wrap.Gogc = true
}
//NOTE: converting in parallel is slower on my system
//nodes := convertLinesToNodesParallel(lines)
nodes := convertLinesToNodes(lines)