emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.39k stars 3.26k forks source link

set parameter conditional compilation #14563

Open crisgol opened 3 years ago

crisgol commented 3 years ago

how can I inform the parameter when compiling for it to take over __cplusplus >= 201703L ?

if __cplusplus >= 201703L

include

include

endif

sbc100 commented 3 years ago

As long as you pass -std=c++17 or -std=c++20 that condition should be true.