We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v2.6.7+HEAD.93b7245
Linux
For compiler options to be handled properly by emcc/em++, same options must be used at compile and link.
Here, an explanation about the optimization options: https://emscripten.org/docs/compiling/Building-Projects.html?highlight=optimization#building-projects-optimizations
$ xmake emcc -c -O2 -o build/.objs/test/wasm/wasm32/release/test.cpp.o test.cpp em++ -o build/wasm/wasm32/release/test.html build/.objs/test/wasm/wasm32/release/test.cpp.o
-O2 is missing on em++ ...
-O2
em++ ...
$ xmake emcc -c -O2 -o build/.objs/test/wasm/wasm32/release/test.cpp.o test.cpp em++ -O2 -o build/wasm/wasm32/release/test.html build/.objs/test/wasm/wasm32/release/test.cpp.o
-O2 on both lines.
test.cpp
#include <cstdio> int main() { puts("Hello"); }
xmake.lua
set_optimize("faster") -- enable -O2 target("test") set_kind("binary") add_files("test.cpp")
No response
The text was updated successfully, but these errors were encountered:
try xmake update -s github:xmake-io/xmake#opti
xmake update -s github:xmake-io/xmake#opti
#2461
Sorry, something went wrong.
I have improved it.
No branches or pull requests
Xmake Version
v2.6.7+HEAD.93b7245
Operating System Version and Architecture
Linux
Describe Bug
For compiler options to be handled properly by emcc/em++, same options must be used at compile and link.
Here, an explanation about the optimization options: https://emscripten.org/docs/compiling/Building-Projects.html?highlight=optimization#building-projects-optimizations
-O2
is missing onem++ ...
Expected Behavior
-O2
on both lines.Project Configuration
test.cpp
xmake.lua
Additional Information and Error Logs
No response
The text was updated successfully, but these errors were encountered: