Skip to content

Conversation

@no1wudi
Copy link
Collaborator

@no1wudi no1wudi commented Jul 28, 2021

Merge iwasm for NuttX、Linux、Darwin、VxWorks into one since they are POSIX compatible with little difference, such as global heap pool size.

Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

Some main.c files are soft link files, right?
WAMR supports Windows platform and the repo may be cloned under Windows, using soft link file is not friendly for Windows, can we keep the original main.c file, and only add a line:

#include "../posix/main.c"

@no1wudi
Copy link
Collaborator Author

no1wudi commented Jul 29, 2021

Some main.c files are soft link files, right?
WAMR supports Windows platform and the repo may be cloned under Windows, using soft link file is not friendly for Windows, can we keep the original main.c file, and only add a line:

#include "../posix/main.c"

Done

@wenyongh wenyongh merged commit 62fb3c9 into bytecodealliance:main Jul 29, 2021
wenyongh referenced this pull request in wenyongh/wasm-micro-runtime Jul 29, 2021
Unify product-mini main.c implementation for POSIX compatible system (#675)
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…ytecodealliance#675)

Unify product-mini main.c implementation for POSIX compatible system: create a shared main.c under platforms/posix/main.c, and in other POSIX platforms' main.c, just keep a line "#include ../posix/main.c".

Signed-off-by: Huang Qi <[email protected]>
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