Skip to content

Enable passing a triple to wamrc #4199

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lum1n0us
Copy link
Collaborator

$ wamrc -v=5 --target=i686-xx-mingw-eabi  -o 1.aot ./1.wasm 

[12:18:41:781 - 7FD7911C6BC0]: triple: i686-xx-mingw-eabi => normalized: i686-xx-windows-gnu

Create AoT compiler with:
  target:        i686
  target cpu:    
  target triple: i686-xx-windows-gnu   <= NORMALIZED
  cpu features:  
  opt level:     3
  size level:    3
  output format: AoT file

@calvin2021y
Copy link

calvin2021y commented Apr 14, 2025

Thanks for this solution.

Is is possiable to add more option related to llvm from wamrc, some like -flto=thin, -flto=full, -O2 by wamrc to pass to llc.

Not sure this is reasonable

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