Fix JavaScript library suffix.

Also add `.bc` files to `.gitignore`
pull/580/head
Fabio Alessandrelli 2021-07-05 15:03:47 +02:00
parent dbf3a13d0f
commit 26d4df4e17
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ logs/*
*.os *.os
*.so *.so
*.obj *.obj
*.bc
*.pyc *.pyc
*.dblite *.dblite
*.pdb *.pdb

View File

@ -397,7 +397,7 @@ elif env["platform"] == "javascript":
# Program() output consists of multiple files, so specify suffixes manually at builder. # Program() output consists of multiple files, so specify suffixes manually at builder.
env["PROGSUFFIX"] = "" env["PROGSUFFIX"] = ""
env["LIBPREFIX"] = "lib" env["LIBPREFIX"] = "lib"
env["LIBSUFFIX"] = ".bc" env["LIBSUFFIX"] = ".a"
env["LIBPREFIXES"] = ["$LIBPREFIX"] env["LIBPREFIXES"] = ["$LIBPREFIX"]
env["LIBSUFFIXES"] = ["$LIBSUFFIX"] env["LIBSUFFIXES"] = ["$LIBSUFFIX"]
env.Replace(SHLINKFLAGS='$LINKFLAGS') env.Replace(SHLINKFLAGS='$LINKFLAGS')