undefine C symbols in JS backend [backport:1.6] (#19437)

fix #19330; fix #19059
This commit is contained in:
flywind
2022-02-05 06:10:24 +08:00
committed by GitHub
parent 33bfe5b12c
commit 7b09fd70ab
3 changed files with 11 additions and 3 deletions

6
tests/js/tcsymbol.nim Normal file
View File

@@ -0,0 +1,6 @@
discard """
matrix: "--cc:gcc; --cc:tcc"
"""
doAssert not defined(gcc)
doAssert not defined(tcc)