Skip to content

Commit 7839b12

Browse files
author
Threepwood-7
committed
CI-041 disable ARM64 Crypto++ compiler multiprocessing
1 parent 4f8ce33 commit 7839b12

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

emule_workspace/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ def ensure_arm64_override_targets(layout: WorkspaceLayout) -> None:
10541054
"""<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
10551055
<ItemDefinitionGroup Condition="'$(Platform)'=='ARM64'">
10561056
<ClCompile>
1057+
<MultiProcessorCompilation>false</MultiProcessorCompilation>
10571058
<AdditionalOptions>/DCRYPTOPP_DISABLE_ASM /DCRYPTOPP_NO_CPU_FEATURE_PROBES %(AdditionalOptions)</AdditionalOptions>
10581059
</ClCompile>
10591060
</ItemDefinitionGroup>

tests/test_build.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ def test_build_libs_serializes_arm64_msbuild_dependencies(
5252
assert {call["max_cpu_count"] for call in captured} == {1}
5353

5454

55+
def test_arm64_crypto_overrides_disable_compiler_multiprocessing(tmp_path: Path) -> None:
56+
layout = make_layout(tmp_path)
57+
58+
build.ensure_arm64_override_targets(layout)
59+
60+
props_text = build.arm64_overrides_props_path(layout).read_text(encoding="utf-8")
61+
assert "<MultiProcessorCompilation>false</MultiProcessorCompilation>" in props_text
62+
assert "/DCRYPTOPP_DISABLE_ASM /DCRYPTOPP_NO_CPU_FEATURE_PROBES" in props_text
63+
64+
5565
def test_build_apps_forwards_startup_diagnostics_option(
5666
tmp_path: Path,
5767
monkeypatch: pytest.MonkeyPatch,

0 commit comments

Comments
 (0)