Skip to content

Commit

Permalink
Fix msvc_cl.py for cuda compilation
Browse files Browse the repository at this point in the history
Passing /MT or /MD option using --compiler_options to nvcc

Change-Id: Idf02ca0a4abf25bced397f5fffc1bc10ff0c160f
PiperOrigin-RevId: 156976225
  • Loading branch information
meteorcloudy authored and iirina committed May 24, 2017
1 parent cfe0064 commit b7f8279
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/cpp/wrapper/bin/pydir/msvc_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ def Run(self, argv):
if rt_idx >= 0:
parser.options[rt_idx] = rt
else:
parser.options.append(rt)
if parser.is_cuda_compilation:
parser.options.append('--compiler-options="%s"' % rt)
else:
parser.options.append(rt)

compiler = 'cl'
if parser.is_cuda_compilation:
Expand Down

0 comments on commit b7f8279

Please sign in to comment.