github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/preprocessor/compiler.go (about) 1 package preprocessor 2 3 func Compiler(isCPP bool) (compiler string, compilerFlag []string) { 4 compiler = "clang" 5 compilerFlag = []string{"-O0"} 6 if isCPP { 7 compiler = "clang++" 8 compilerFlag = []string{"-std=c++98"} 9 } 10 return 11 }