Skip to content

Commit

Permalink
Windows: Fix cuda option parsing when /Od is passed
Browse files Browse the repository at this point in the history
When not using -c opt, /Od will be passed instead of /O2

--
Change-Id: I693020d51d45e054e10a94a5e1754b89c44c7ff4
Reviewed-on: https://cr.bazel.build/7670
PiperOrigin-RevId: 141291490
MOS_MIGRATED_REVID=141291490
  • Loading branch information
meteorcloudy authored and laszlocsomor committed Dec 7, 2016
1 parent f7cf725 commit b9aadcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cpp/wrapper/bin/pydir/msvc_tools.py.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class ArgParser(object):

opt_option = self.GetOptionValue('O')
opt = ['-g', '-G']
if (len(opt_option) > 0 and int(opt_option[0]) > 0):
if (len(opt_option) > 0 and opt_option[0] != 'd'):
opt = ['-O2']

include_options = self.GetOptionValue('I')
Expand Down

0 comments on commit b9aadcb

Please sign in to comment.