Skip to content

Commit 57576d6

Browse files
committed
3.1.74.4pre
1 parent a719b3f commit 57576d6

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
EMFLAVOUR: 3.1.74
3030

3131
steps:
32-
- uses: actions/checkout@v3.3.0
32+
- uses: actions/checkout@v4.2.2
3333

3434
- name: Display CI properties
3535
run: |
@@ -57,13 +57,13 @@ jobs:
5757
bash -c "./python-wasm-sdk.sh"
5858
5959
- name: Upload sdk to Github artifacts
60-
uses: actions/upload-artifact@v3.1.1
60+
uses: actions/upload-artifact@v4
6161
with:
6262
path: /tmp/sdk
6363

6464
- name: Upload sdk to Github Releases
6565
if: github.event_name == 'release'
66-
uses: svenstaro/upload-release-action@2.3.0
66+
uses: svenstaro/upload-release-action@2.9.0
6767
with:
6868
repo_token: ${{ secrets.GITHUB_TOKEN }}
6969
file: /tmp/sdk/*

emsdk-cc

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ COMMON = arglist(
6565
false = False
6666
true = True
6767

68-
TOGGLED_SHARED = PY_MODULE = IS_SHARED = false
68+
PY_MODULE = IS_SHARED = false
6969
SHARED_TARGET = SHARED = ""
7070

7171
MVP = env("MVP", true)
@@ -261,6 +261,9 @@ else:
261261

262262
elif not STATIC:
263263
if arg.endswith(".so"):
264+
if not IS_SHARED:
265+
LINKING = True
266+
264267
if arg.startswith("/usr/lib"):
265268
arg = f"-l{arg.rsplit('/',1)[-1][3:-3]}"
266269
if arg in ("-lportmidi", "-lporttime"):
@@ -269,7 +272,6 @@ else:
269272
if arg.find("wasm32-emscripten.so") > 0 or arg.find("abi3.so") > 0:
270273
PY_MODULE = True
271274
SHARED_TARGET = arg
272-
IS_SHARED = True
273275

274276
# FIX linking .so when it should have been .a for final exe without MAIN_MODULE set
275277
# should be "LINKING" state
@@ -288,7 +290,6 @@ else:
288290
IS_SHARED = True
289291
continue
290292

291-
292293
# duplicates can happen on cmake/rustc but they are expected to be here for a reason so skip them
293294
if not (CMAKE or NINJA or RUSTC):
294295
# prevent duplicates objects/archives files on cmdline when linking
@@ -409,11 +410,8 @@ else:
409410
if SIZEOPT and ("-sENVIRONMENT=web" not in out):
410411
final.append("-sENVIRONMENT=web")
411412

412-
413-
if IS_SHARED and not TOGGLED_SHARED:
414-
TOGGLED_SHARED = True
415-
SHARED = f"-shared -sASSERTIONS=0 -sSIDE_MODULE=1 -L{PREFIX}/lib"
416-
413+
if IS_SHARED or (LINKING and PYMODULE):
414+
SHARED = f"-shared -sASSERTIONS=0 -sSIDE_MODULE=1"
417415

418416
# maybe not pass all WASM opts when -c + -o but always PIC and opt level
419417
final.extend(arglist("-fPIC", SHARED, COPTS))

0 commit comments

Comments
 (0)