Skip to content

Commit

Permalink
refactor for readability
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Clauss <[email protected]>
  • Loading branch information
toyobayashi and cclauss authored Jan 19, 2024
1 parent 326246b commit 9bc7805
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pylib/gyp/generator/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -2449,9 +2449,11 @@ def CalculateMakefilePath(build_file, base_name):
makedep_arguments = "-MMD"

# some linkers don't support --start-group/--end-group (e.g. wasm-ld)
link_commands = LINK_COMMANDS_LINUX.replace(' -Wl,--start-group', '').replace(
' -Wl,--end-group', ''
) if gyp.common.CrossCompileRequested() else LINK_COMMANDS_LINUX
link_commands = LINK_COMMANDS_LINUX
if gyp.common.CrossCompileRequested():
link_commands = link_commands.replace(' -Wl,--start-group', '').replace(
' -Wl,--end-group', ''
)

header_params = {
"default_target": default_target,
Expand Down

0 comments on commit 9bc7805

Please sign in to comment.