Skip to content

Commit

Permalink
Merge pull request #43 from woodruffw-forks/ww/debugging
Browse files Browse the repository at this point in the history
Don't treat -w/-W as compile-only indicators
  • Loading branch information
ianamason authored Feb 18, 2021
2 parents 35f6889 + 285070d commit 44b352b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions shared/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ func compileTimeLinkFiles(compilerExecName string, pr ParserResult, objFiles []s
func buildObjectFile(compilerExecName string, pr ParserResult, srcFile string, objFile string) (success bool) {
args := pr.CompileArgs[:]
args = append(args, srcFile, "-c", "-o", objFile)
LogDebug("buildObjectFile: %v", args)
success, err := execCmd(compilerExecName, args, "")
if !success {
LogError("Failed to build object file for %s because: %v\n", srcFile, err)
Expand Down
4 changes: 2 additions & 2 deletions shared/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ func Parse(argList []string) ParserResult {
"--version": {0, pr.compileOnlyCallback},
"-v": {0, pr.compileOnlyCallback},

"-w": {0, pr.compileOnlyCallback},
"-W": {0, pr.compileOnlyCallback},
"-w": {0, pr.compileUnaryCallback},
"-W": {0, pr.compileUnaryCallback},

"-emit-llvm": {0, pr.emitLLVMCallback},
"-flto": {0, pr.linkTimeOptimizationCallback},
Expand Down

0 comments on commit 44b352b

Please sign in to comment.