Skip to content

Conversation

@sbc100
Copy link
Member

@sbc100 sbc100 commented Oct 24, 2025

There is now just one emscripten target called binaryen_js. The settings for these two targets were almost identical except for.

  1. Some JS_OF_OCAML specific stuff which is kept for the new unified target.
  2. -sASSERTIONS was being forced (See Avoid errors in binaryen.js assertions builds, and enable ASSERTIONS in debug builds. #2507). I dropped this in favor of doing a debug build in testing where this is enabled by default.

else()
target_link_libraries(binaryen_js PRIVATE "-sEXPORT_ES6=1")
# Currently, js_of_ocaml can only process ES5 code
target_link_libraries(binaryen_js PRIVATE "-sEXPORT_ES6")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I don't recall the background here, but if js_of_ocaml has issues with ES6, maybe it also does with wasm?

@sbc100 sbc100 force-pushed the drop_pure_js branch 2 times, most recently from 4e05087 to ccdd06a Compare October 25, 2025 00:00
@sbc100
Copy link
Member Author

sbc100 commented Oct 25, 2025

It looks like that JS_OF_OCAML stuff was added back in #4637

@phated are you guys limited to -sWASM=0 in some fundamental way? i.e. is dropping the pure JS build going to be a pain for you?

There is now just one emscripten target called `binaryen_js`.  The
settings for these two targets were almost identical except for.

1. Some JS_OF_OCAML specific stuff which is kept for the new unified
   target.
2. `-sASSERTIONS` was being forced (See #2507).  I dropped this in favor
   of doing a debug build in testing where this is enabled by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants