Skip to content

Commit

Permalink
fix: define enviroment
Browse files Browse the repository at this point in the history
  • Loading branch information
koen1711 committed Mar 23, 2024
1 parent cd55fa6 commit 1722235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-fPIC -O3 -s ASYNCIFY_IMPORTS=['serialPortWrite','serialPortRecv'] -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s MAIN_MODULE -s WASM=1 -s FORCE_FILESYSTEM -s ASYNCIFY=1 -s INVOKE_RUN=0 -s WASM_BIGINT=1 -s MODULARIZE=1 -s EXPORT_KEEPALIVE=1 --bind -s \"EXPORTED_FUNCTIONS=['_startAvrdude','_main','_malloc']\" -s EXPORTED_RUNTIME_METHODS='[\"cwrap\", \"writeStringToMemory\", \"FS\", \"allocate\", \"intArrayFromString\"]'")
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-fPIC -O3 -s ENVIRONMENT=web -s ASYNCIFY_IMPORTS=['serialPortWrite','serialPortRecv'] -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s MAIN_MODULE -s WASM=1 -s FORCE_FILESYSTEM -s ASYNCIFY=1 -s INVOKE_RUN=0 -s WASM_BIGINT=1 -s MODULARIZE=1 -s EXPORT_KEEPALIVE=1 --bind -s \"EXPORTED_FUNCTIONS=['_startAvrdude','_main','_malloc']\" -s EXPORTED_RUNTIME_METHODS='[\"cwrap\", \"writeStringToMemory\", \"FS\", \"allocate\", \"intArrayFromString\"]'")

add_executable(avrdude
../interface/main.cpp
Expand Down

0 comments on commit 1722235

Please sign in to comment.