Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
c1cab0c3
by Sylvain Henry at 2025-09-26T10:36:30-04:00
-
0a434a80
by Sylvain Henry at 2025-09-26T10:36:30-04:00
4 changed files:
- m4/fptools_set_c_ld_flags.m4
- rts/js/mem.js
- testsuite/driver/testlib.py
- utils/ghc-toolchain/src/GHC/Toolchain/Tools/Link.hs
Changes:
| ... | ... | @@ -109,9 +109,6 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], |
| 109 | 109 | $2="$$2 -mcmodel=medium"
|
| 110 | 110 | ;;
|
| 111 | 111 | |
| 112 | - javascript*)
|
|
| 113 | - $3="$$3 -sEXPORTED_RUNTIME_METHODS=HEAP8,HEAPU8"
|
|
| 114 | - |
|
| 115 | 112 | esac
|
| 116 | 113 | |
| 117 | 114 | AC_MSG_RESULT([done])
|
| 1 | 1 | //#OPTIONS:CPP
|
| 2 | -//#OPTIONS:EMCC:EXPORTED_RUNTIME_METHODS=addFunction,removeFunction,getEmptyTableSlot,HEAP8
|
|
| 2 | +//#OPTIONS:EMCC:EXPORTED_RUNTIME_METHODS=addFunction,removeFunction,getEmptyTableSlot,HEAP8,HEAPU8
|
|
| 3 | 3 | |
| 4 | 4 | // #define GHCJS_TRACE_META 1
|
| 5 | 5 |
| ... | ... | @@ -3005,7 +3005,7 @@ def normalise_errmsg(s: str) -> str: |
| 3005 | 3005 | # Emscripten displays cache info and old emcc doesn't support EMCC_LOGGING=0
|
| 3006 | 3006 | s = re.sub('cache:INFO: .*\n', '', s)
|
| 3007 | 3007 | # Old emcc warns when we export HEAP8 but new one requires it (see #26290)
|
| 3008 | - s = s.replace('warning: invalid item in EXPORTED_RUNTIME_METHODS: HEAP8\nemcc: warning: warnings in JS library compilation [-Wjs-compiler]\n','')
|
|
| 3008 | + s = s.replace('warning: invalid item in EXPORTED_RUNTIME_METHODS: HEAP8\nwarning: invalid item in EXPORTED_RUNTIME_METHODS: HEAPU8\nemcc: warning: warnings in JS library compilation [-Wjs-compiler]\n','')
|
|
| 3009 | 3009 | |
| 3010 | 3010 | return s
|
| 3011 | 3011 |
| ... | ... | @@ -324,10 +324,6 @@ addPlatformDepLinkFlags archOs cc ccLink0 = do |
| 324 | 324 | ArchOS ArchPPC OSAIX ->
|
| 325 | 325 | -- We need `-D_THREAD_SAFE` to unlock the thread-local `errno`.
|
| 326 | 326 | return $ ccLink2 & over _prgFlags (++["-D_THREAD_SAFE","-Wl,-bnotextro"])
|
| 327 | - ArchOS ArchJavaScript OSGhcjs ->
|
|
| 328 | - -- Since https://github.com/emscripten-core/emscripten/blob/main/ChangeLog.md#407---041525
|
|
| 329 | - -- the emcc linker does not export the HEAP8 memory view which is used by the js RTS by default anymore.
|
|
| 330 | - return $ ccLink2 & _prgFlags %++ "-sEXPORTED_RUNTIME_METHODS=HEAP8,HEAPU8"
|
|
| 331 | 327 | _ ->
|
| 332 | 328 | return ccLink2
|
| 333 | 329 |