Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: cdavalillo on April 05, 2022, 09:47:58 pm

Title: Configuring Code::Blocks to compile WebAssembly from c/c++ source code
Post by: cdavalillo on April 05, 2022, 09:47:58 pm
Hi, I recently read this (https://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system) article in the Code::Blocks wiki and I'm wondering if there is any way to adapt Code::Blocks to compile c/c++ source code to WebAssembly using Emscripten tool (compiler), as the compilation commands are as simple as

Code
emcc hello.c -o hello.html

But honestly I don't know yet how to do it, after reading the article. If this functionality is already included in Code::Blocks please let me know how to do so, and if not please include that functionality to Code::Blocks, it would be great for the web developers whom wants to use WebAssembly compiling c/c++ source code
Title: Re: Configuring Code::Blocks to compile WebAssembly from c/c++ source code
Post by: Miguel Gimenez on April 06, 2022, 09:25:50 am
Mandrav forgot to say where is this dialog, it is in Settings -> Compiler -> Global compiler settings -> Other settings -> Advanced options