Skip to content

Commit

Permalink
Correct redirect-cc arg on win and use .cmd wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
bbondy committed Feb 9, 2018
1 parent 2e8fd00 commit 48aa116
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions script/redirect-cc.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python ..\..\brave\script\redirect-cc.py %*
5 changes: 4 additions & 1 deletion script/redirect-cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ def main():

def replace_cc_arg(args):
# Interested in -c <path>.cc
index_c = args.index('-c')
if sys.platform == 'win32':
index_c = args.index('/c')
else:
index_c = args.index('-c')

if 0 == len(args) or index_c == len(args) - 1:
# Something wrong, we have -c but have no path in the next arg
Expand Down

0 comments on commit 48aa116

Please sign in to comment.