Skip to content

Commit 07259ac

Browse files
committed
feat(msvs): add support for CL env var
1 parent 33ff306 commit 07259ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pylib/gyp/generator/msvs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3466,6 +3466,8 @@ def _GetValueFormattedForMSBuild(tool_name, name, value):
34663466
formatted_value = char.join(
34673467
[MSVSSettings.ConvertVCMacrosToMSBuild(i) for i in value]
34683468
)
3469+
if tool_name == "ClCompile" and name == "AdditionalOptions":
3470+
formatted_value += os.environ.get("CL", "").replace("#", "=")
34693471
else:
34703472
formatted_value = MSVSSettings.ConvertVCMacrosToMSBuild(value)
34713473
return formatted_value

0 commit comments

Comments
 (0)