Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wasm build system improvements #2213

Merged
merged 5 commits into from
Dec 6, 2023
Merged

Wasm build system improvements #2213

merged 5 commits into from
Dec 6, 2023

Conversation

no1wudi
Copy link
Contributor

@no1wudi no1wudi commented Nov 28, 2023

Summary

  • Emit map file like NuttX's System.map for more debug information.
  • Before WAMR 1.3.0, eabihf in wamrc is gnueabihf, so without this patch call wamrc will failed with target abi was eabihf, we should convert the standard llvm target to wamrc required. Both eabihf and gnueabihf supported after WAMR 1.3.0.
  • Split origin Wasm.mk into Wasm.mk and WASI-SDK.defs
  • Allow customize ld flags for each wasm module
  • Move final wasm module to bin/wasm, and leave all intermediate file in apps/wasm, such as .map file, entry object etc used in wasm module build.

Impact

Makefile for wasm build system

Testing

Vela and CI

Emit map file like NuttX's `System.map` for more
debug information.

Signed-off-by: Huang Qi <[email protected]>
Before WAMR 1.3.0, eabihf in wamrc is `gnueabihf`, so without
this patch call wamrc will failed with target abi was `eabihf`,
we should convert the standard llvm target to wamrc required.

Both `eabihf` and `gnueabihf` supported after WAMR 1.3.0.

Signed-off-by: Huang Qi <[email protected]>
Try to follow current NuttX's toolchain parttern:
Wasm.mk: Provide target rule for building wasm module
WASI-SDK.defs: Provide compile flags for building

Signed-off-by: Huang Qi <[email protected]>
And leave all intermediate file in apps/wasm,
such as .map file, entry object etc used in
wasm module build.

Signed-off-by: Huang Qi <[email protected]>
@xiaoxiang781216 xiaoxiang781216 merged commit f57cd2c into apache:master Dec 6, 2023
25 checks passed
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.

2 participants