Skip to content

Commit

Permalink
fix: Disable sanitizer when not debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
swederik committed Aug 26, 2021
1 parent 7298f79 commit 30961c3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/charls/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ set_target_properties(
-s ERROR_ON_UNDEFINED_SYMBOLS=0 \
-s EXPORTED_FUNCTIONS=[] \
-s EXPORTED_RUNTIME_METHODS=[ccall] \
-fsanitize=address \
")

# -fsanitize=address \
# -s EXPORTED_FUNCTIONS=[___lsan_do_recoverable_leak_check] \

#### DECODE-ONLY VERSION
Expand Down Expand Up @@ -117,6 +117,8 @@ set_target_properties(
-s EXPORTED_FUNCTIONS=[] \
-s EXPORTED_RUNTIME_METHODS=[ccall] \
")

# -fsanitize=address \
#-s EXPORTED_FUNCTIONS=[___lsan_do_recoverable_leak_check] \

## WASM BUILD
Expand Down Expand Up @@ -151,5 +153,6 @@ set_target_properties(
-s ERROR_ON_UNDEFINED_SYMBOLS=0 \
-s EXPORTED_FUNCTIONS=[] \
-s EXPORTED_RUNTIME_METHODS=[ccall] \
-fsanitize=address \
")
")

# -fsanitize=address \

0 comments on commit 30961c3

Please sign in to comment.