Skip to content

Commit

Permalink
add linker to build linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponchale committed Nov 5, 2023
1 parent 86d7fbe commit c85be08
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ jobs:
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- uses: rui314/setup-mold@v1
- name: Create environment 🌲
run: |
import os
Expand Down Expand Up @@ -169,6 +171,13 @@ jobs:
]
# SCCACHE SETTINGS END
# MOLD SETTINGS START
mozconfig += [
"export RUSTFLAGS='-Clink-arg=-fuse-ld=mold'"
, "ac_add_options --enable-linker=mold"
]
# MOLD SETTINGS END
mozconfig_file = open("mozconfig",'a')
mozconfig_file.writelines('\n'.join(mozconfig))
Expand Down

0 comments on commit c85be08

Please sign in to comment.