Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pylib/gyp/generator/msvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3633,6 +3633,15 @@ def _AddSources2(
elif file_name.startswith("$("):
file_name = re.sub(r"^\$\([^)]+\)\\", "", file_name)
detail.append(["ObjectFileName", "$(IntDir)\\" + file_name])
if element == "MARMASM":
# When compiling on VS2022+, compilation fails with a C1083 as
# MARMASM tries to preprocess by default.
# https://developercommunity.visualstudio.com/t/ARM64---fatal-error-C1083:-Cannot-open/10119540
detail.append([
"PreprocessWithCl",
{"Condition": "'$(VisualStudioVersion)' >= '17.0'"},
"false"
])
grouped_sources[group].append([element, {"Include": source}] + detail)


Expand Down