Skip to content

Conversation

@shengyun-zhou
Copy link
Contributor

  1. Support cross building wamrc and installing it.
  2. Remove PIE flag for Windows to fix compilation error when compiled by clang.
  3. Support linking LLVM shared libs to help build with system default or custom LLVM installation and reduce binary size.

-lm -lpthread ${lib_lldb} ${UV_A_LIBS})
if (MINGW)
target_link_libraries (wamrc -lssp -lWs2_32)
target_link_libraries (wamrc ssp.a ws2_32)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good, have you tested building wamrc on Windows and Windows MinGW?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed a compilation error and built a worked wamrc by MSYS2 mingw-w64-x86_64-gcc compiler with MSYS2 mingw-w64-x86_64-llvm installation.

@wenyongh wenyongh merged commit 2e77626 into bytecodealliance:main Oct 13, 2022
@shengyun-zhou shengyun-zhou deleted the wamrc-cross-compile branch October 14, 2022 02:07
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…lliance#1578)

1. Support cross building wamrc and installing it
2. Remove PIE flag for Windows to fix compilation error when compiled by clang
3. Support linking LLVM shared libs to help build with system default or custom
   LLVM installation and reduce binary size.
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