Compare commits
1 Commits
a7df3a4e71
...
2e235d0f29
Author | SHA1 | Date | |
---|---|---|---|
2e235d0f29 |
|
@ -12,3 +12,4 @@ subclasses:
|
||||||
|
|
||||||
imports: [ simple.h ]
|
imports: [ simple.h ]
|
||||||
frameworks: [ Foundation ]
|
frameworks: [ Foundation ]
|
||||||
|
#arc: true
|
||||||
|
|
3
main.go
3
main.go
|
@ -167,6 +167,9 @@ func Start() (err error) {
|
||||||
// Generate AST
|
// Generate AST
|
||||||
cargs := []string{"-xobjective-c", "-Xclang", "-ast-dump",
|
cargs := []string{"-xobjective-c", "-Xclang", "-ast-dump",
|
||||||
"-fsyntax-only","-fno-color-diagnostics"}
|
"-fsyntax-only","-fno-color-diagnostics"}
|
||||||
|
if Config.Arc {
|
||||||
|
cargs = append(cargs,"-fobjc-arc")
|
||||||
|
}
|
||||||
cargs = append(cargs,Config.Inputfiles...)
|
cargs = append(cargs,Config.Inputfiles...)
|
||||||
fmt.Printf("Generating AST\n")
|
fmt.Printf("Generating AST\n")
|
||||||
astPP, err := exec.Command("clang",cargs...).Output()
|
astPP, err := exec.Command("clang",cargs...).Output()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user