mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 21:14:48 +01:00
Merge pull request #43 from woodruffw-forks/ww/debugging
Don't treat -w/-W as compile-only indicators
This commit is contained in:
commit
44b352b488
@ -271,6 +271,7 @@ func compileTimeLinkFiles(compilerExecName string, pr ParserResult, objFiles []s
|
|||||||
func buildObjectFile(compilerExecName string, pr ParserResult, srcFile string, objFile string) (success bool) {
|
func buildObjectFile(compilerExecName string, pr ParserResult, srcFile string, objFile string) (success bool) {
|
||||||
args := pr.CompileArgs[:]
|
args := pr.CompileArgs[:]
|
||||||
args = append(args, srcFile, "-c", "-o", objFile)
|
args = append(args, srcFile, "-c", "-o", objFile)
|
||||||
|
LogDebug("buildObjectFile: %v", args)
|
||||||
success, err := execCmd(compilerExecName, args, "")
|
success, err := execCmd(compilerExecName, args, "")
|
||||||
if !success {
|
if !success {
|
||||||
LogError("Failed to build object file for %s because: %v\n", srcFile, err)
|
LogError("Failed to build object file for %s because: %v\n", srcFile, err)
|
||||||
|
@ -177,8 +177,8 @@ func Parse(argList []string) ParserResult {
|
|||||||
"--version": {0, pr.compileOnlyCallback},
|
"--version": {0, pr.compileOnlyCallback},
|
||||||
"-v": {0, pr.compileOnlyCallback},
|
"-v": {0, pr.compileOnlyCallback},
|
||||||
|
|
||||||
"-w": {0, pr.compileOnlyCallback},
|
"-w": {0, pr.compileUnaryCallback},
|
||||||
"-W": {0, pr.compileOnlyCallback},
|
"-W": {0, pr.compileUnaryCallback},
|
||||||
|
|
||||||
"-emit-llvm": {0, pr.emitLLVMCallback},
|
"-emit-llvm": {0, pr.emitLLVMCallback},
|
||||||
"-flto": {0, pr.linkTimeOptimizationCallback},
|
"-flto": {0, pr.linkTimeOptimizationCallback},
|
||||||
|
Loading…
Reference in New Issue
Block a user