File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ foreach(example IN LISTS TF_EXAMPLES)
38
38
target_link_libraries (
39
39
${example} ${PROJECT_NAME} tf::default_settings
40
40
)
41
+ # set emcc options
42
+ if (CMAKE_SYSTEM_NAME STREQUAL Emscripten)
43
+ target_link_options (${example} PUBLIC -sASSERTIONS=1 -sPROXY_TO_PTHREAD -sTOTAL_MEMORY=1536MB -sEXIT_RUNTIME=1 -sUSE_PTHREADS=1)
44
+ target_compile_options (${example} PUBLIC -matomics)
45
+ endif ()
41
46
endforeach ()
42
47
43
48
# -----------------------------------------------------------------------------
Original file line number Diff line number Diff line change 76
76
#define TF_OS_SOLARIS 1
77
77
#endif
78
78
79
- #if (1 != \
80
- TF_OS_LINUX + TF_OS_DRAGONFLY + TF_OS_FREEBSD + TF_OS_NETBSD + \
81
- TF_OS_OPENBSD + TF_OS_DARWIN + TF_OS_WINDOWS + TF_OS_HURD + \
82
- TF_OS_SOLARIS)
83
- #error Unknown OS
84
- #endif
85
-
86
79
#if TF_OS_LINUX || TF_OS_DRAGONFLY || TF_OS_FREEBSD || TF_OS_NETBSD || \
87
80
TF_OS_OPENBSD || TF_OS_DARWIN || TF_OS_HURD || TF_OS_SOLARIS
88
81
#undef TF_OS_UNIX
You can’t perform that action at this time.
0 commit comments