Make GC mode the default.
This commit is contained in:
parent
4aa1211d73
commit
b5773b5525
|
@ -44,5 +44,3 @@ subclasses:
|
||||||
|
|
||||||
frameworks: [ Foundation, AppKit ]
|
frameworks: [ Foundation, AppKit ]
|
||||||
pragma: [ clang diagnostic ignored "-Wformat-security" ]
|
pragma: [ clang diagnostic ignored "-Wformat-security" ]
|
||||||
#autorelease: true
|
|
||||||
gogc: true
|
|
||||||
|
|
|
@ -39,4 +39,3 @@ delegates:
|
||||||
- peripheralDidUpdateValueForCharacteristic
|
- peripheralDidUpdateValueForCharacteristic
|
||||||
|
|
||||||
pragma: [ clang diagnostic ignored "-Wformat-security" ]
|
pragma: [ clang diagnostic ignored "-Wformat-security" ]
|
||||||
gogc: true
|
|
||||||
|
|
|
@ -16,4 +16,3 @@ functions:
|
||||||
frameworks:
|
frameworks:
|
||||||
- Foundation
|
- Foundation
|
||||||
pragma: [ clang diagnostic ignored "-Wformat-security" ]
|
pragma: [ clang diagnostic ignored "-Wformat-security" ]
|
||||||
gogc: true
|
|
||||||
|
|
13
main.go
13
main.go
|
@ -39,7 +39,6 @@ type conf struct {
|
||||||
//Arc flag for debugging only, builds will break
|
//Arc flag for debugging only, builds will break
|
||||||
Arc bool
|
Arc bool
|
||||||
Autorelease bool
|
Autorelease bool
|
||||||
Gogc bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var Config conf
|
var Config conf
|
||||||
|
@ -251,19 +250,17 @@ func Start() (err error) {
|
||||||
if Config.Positions {
|
if Config.Positions {
|
||||||
ast.TrackPositions = true
|
ast.TrackPositions = true
|
||||||
}
|
}
|
||||||
if Config.Gogc && Config.Autorelease {
|
wrap.Gogc = true
|
||||||
fmt.Printf("Cannot use Autorelease and Gogc directives at the same time\n")
|
|
||||||
os.Exit(-1)
|
|
||||||
}
|
|
||||||
if Config.Arc {
|
if Config.Arc {
|
||||||
wrap.Arc = true
|
wrap.Arc = true
|
||||||
|
wrap.Gogc = false
|
||||||
}
|
}
|
||||||
if Config.Autorelease {
|
if Config.Autorelease {
|
||||||
wrap.Autorelease = true
|
wrap.Autorelease = true
|
||||||
|
wrap.Gogc = false
|
||||||
}
|
}
|
||||||
if Config.Gogc {
|
|
||||||
wrap.Gogc = true
|
|
||||||
}
|
|
||||||
//NOTE: converting in parallel is slower on my system
|
//NOTE: converting in parallel is slower on my system
|
||||||
//nodes := convertLinesToNodesParallel(lines)
|
//nodes := convertLinesToNodesParallel(lines)
|
||||||
nodes := convertLinesToNodes(lines)
|
nodes := convertLinesToNodes(lines)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user