Skip to content

fixes needed for building c3c with emcmake (wasm32-emscripten) - #3415

Open
ManuLinares wants to merge 4 commits into
c3lang:masterfrom
ManuLinares:wasm32-c3c
Open

fixes needed for building c3c with emcmake (wasm32-emscripten)#3415
ManuLinares wants to merge 4 commits into
c3lang:masterfrom
ManuLinares:wasm32-c3c

Conversation

@ManuLinares

@ManuLinares ManuLinares commented Aug 3, 2026

Copy link
Copy Markdown
Member

This is so I can build the playground (live here)

source code: https://github.com/ManuLinares/c3-playground/

Comment thread src/utils/vmem.c Outdated
Comment thread src/compiler/compiler.c
const char *cc = compiler.build.cc ? compiler.build.cc : default_c_compiler();
if (!file_executable_in_path(cc)) system_linker_available = false;
if (compiler.platform.os == OS_TYPE_EMSCRIPTEN && (!file_executable_in_path(cc) || !strstr(cc, "emcc")))
if (compiler.platform.os == OS_TYPE_EMSCRIPTEN && compiler.build.linker_type != LINKER_TYPE_BUILTIN && (!file_executable_in_path(cc) || !strstr(cc, "emcc")))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Will it work with linker=builtin?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

nope, unless the user provides their own SDK like the emscripten libc sdk but at that point just use emcc

ManuLinares added a commit to ManuLinares/c3-playground that referenced this pull request Aug 6, 2026
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