diff --git a/script/redirect-cc.cmd b/script/redirect-cc.cmd new file mode 100644 index 000000000000..92770e91bf91 --- /dev/null +++ b/script/redirect-cc.cmd @@ -0,0 +1 @@ +python ..\..\brave\script\redirect-cc.py %* diff --git a/script/redirect-cc.py b/script/redirect-cc.py index 164fe5950865..077a88e24c1f 100755 --- a/script/redirect-cc.py +++ b/script/redirect-cc.py @@ -11,7 +11,10 @@ def main(): def replace_cc_arg(args): # Interested in -c .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