fix: support cmake command mode (#4705)

This commit is contained in:
Henry Schreiner 2024-04-22 06:12:44 -04:00 committed by GitHub
parent 6fb3d7340c
commit b886ed2065
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ myst:
## Unreleased
- {{ Fix }} Pass through `-E` (command mode) arguments in CMake wrapper {pr}`4705`.
- {{ Fix }} Fix exception handling in dynamic linking of int64 functions {pr}`4698`.
- {{ Enhancement }} `str(jsproxy)` has been adjusted to not raise an error if

View File

@ -479,7 +479,7 @@ def handle_command_generate_args( # noqa: C901
return line
elif cmd == "cmake":
# If it is a build/install command, or running a script, we don't do anything.
if "--build" in line or "--install" in line or "-P" in line:
if "--build" in line or "--install" in line or "-P" in line or "-E" in line:
return line
flags = get_cmake_compiler_flags()