Enable -fobjc-arc for AST generation when arc=true in nswrap.yaml.
s still doesn't work
This commit is contained in:
parent
e29ae58a9c
commit
2e235d0f29
|
@ -12,3 +12,4 @@ subclasses:
|
|||
|
||||
imports: [ simple.h ]
|
||||
frameworks: [ Foundation ]
|
||||
#arc: true
|
||||
|
|
3
main.go
3
main.go
|
@ -167,6 +167,9 @@ func Start() (err error) {
|
|||
// Generate AST
|
||||
cargs := []string{"-xobjective-c", "-Xclang", "-ast-dump",
|
||||
"-fsyntax-only","-fno-color-diagnostics"}
|
||||
if Config.Arc {
|
||||
cargs = append(cargs,"-fobjc-arc")
|
||||
}
|
||||
cargs = append(cargs,Config.Inputfiles...)
|
||||
fmt.Printf("Generating AST\n")
|
||||
astPP, err := exec.Command("clang",cargs...).Output()
|
||||
|
|
Loading…
Reference in New Issue
Block a user