Compare commits

...

1 Commits

Author SHA1 Message Date
2e235d0f29 Enable -fobjc-arc for AST generation when arc=true in nswrap.yaml.
s still doesn't work
2019-05-31 16:25:58 -04:00
2 changed files with 4 additions and 0 deletions

View File

@ -12,3 +12,4 @@ subclasses:
imports: [ simple.h ]
frameworks: [ Foundation ]
#arc: true

View File

@ -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()