Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[mypyc] librt base64: only match against C files when adding the addi…
…tional compiler flags
  • Loading branch information
mr-c committed Nov 27, 2025
commit d0eda17178f012cdce6e888c32736a1e4c4e790e
5 changes: 2 additions & 3 deletions mypyc/build_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ def spawn(self, cmd, **kwargs) -> None: # type: ignore[no-untyped-def]
if X86_64 and extra_options is not None:
# filenames are closer to the end of command line
for argument in reversed(new_cmd):
# Check if argument contains a filename. We must check for all
# possible extensions; checking for target extension is faster.
if self.obj_extension and not str(argument).endswith(self.obj_extension):
# Check if the matching argument contains a source filename.
if not str(argument).endswith(".c"):
continue

for path in extra_options.keys():
Expand Down
5 changes: 2 additions & 3 deletions mypyc/lib-rt/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ def spawn(self, cmd, **kwargs) -> None: # type: ignore[no-untyped-def]
if X86_64 and extra_options is not None:
# filenames are closer to the end of command line
for argument in reversed(new_cmd):
# Check if argument contains a filename. We must check for all
# possible extensions; checking for target extension is faster.
if self.obj_extension and not str(argument).endswith(self.obj_extension):
# Check if the matching argument contains a source filename.
if not str(argument).endswith(".c"):
continue

for path in extra_options.keys():
Expand Down