diff --git a/conda_build/windows.py b/conda_build/windows.py index ba53abf80a..706b499265 100644 --- a/conda_build/windows.py +++ b/conda_build/windows.py @@ -110,6 +110,9 @@ def msvc_env_cmd(bits, config, override=None): "If this recipe does not use a compiler, this message is safe to ignore. " "Otherwise, use {{compiler('')}} jinja2 in requirements/build." ) + if bits not in ["64", "32"]: + log.warn(f"The legacy MSVC compiler setup does not support {bits} builds. ") + return "" if override: log.warn( "msvc_compiler key in meta.yaml is deprecated. Use the new" diff --git a/news/4867-arm64-msvc-env-cmd-no-op b/news/4867-arm64-msvc-env-cmd-no-op new file mode 100644 index 0000000000..134dcd14fd --- /dev/null +++ b/news/4867-arm64-msvc-env-cmd-no-op @@ -0,0 +1,19 @@ +### Enhancements + +* + +### Bug fixes + +* + +### Deprecations + +* + +### Docs + +* + +### Other + +* Added a check to print an additional warning and return an empty string when bits is "arm64" in msvc_env_cmd. (#4867)