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
commit 7b09fd70ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)