Skip to content

Commit 004e68a

Browse files
Merge branch 'main' of https://github.com/ISSMteam/ISSM
2 parents e39aba6 + 14b065b commit 004e68a

File tree

6 files changed

+9
-13
lines changed

6 files changed

+9
-13
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#==================
33
*.a
44
*.al
5+
*.js
56
*.la
67
*.lo
78
*.mexa64
@@ -10,6 +11,7 @@
1011
*.pyo
1112
*.so
1213
*.so.[0-9]*
14+
*.wasm
1315
__pycache__
1416
bin/
1517
lib/
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CXX=em++
2-
CXXSWITCHES=$(CFLAGS) -DNO_TIMER -fPIC -DANSI_DECLARATORS -DTRILIBRARY
3-
TRILIBDEFS=-DTRILIBRARY -DANSI_DECLARATORS
4-
LIB_EXT=a
1+
CC=emcc
2+
CSWITCHES= $(CFLAGS) -DNO_TIMER -fpic
3+
TRILIBDEFS= -DTRILIBRARY

externalpackages/triangle/install-linux-javascript.sh renamed to externalpackages/triangle/install-javascript.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu
44

55
# Constants
66
#
7-
export PREFIX="${ISSM_DIR}/externalpackages/triangle/install" # Set to location where external package should be installed
7+
export PREFIX="${ISSM_EXT_DIR}/javascript/triangle/install" # Set to location where external package should be installed
88

99
# Environment
1010
#

jenkins/jenkins.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ if [ $JAVASCRIPT_TEST -eq 1 ]; then
223223
export AR=emar
224224
export RANLIB=emranlib
225225
#export EMCC_DEBUG=1 # Uncomment to enable debugging
226-
export EMCC_CFLAGS="-s ERROR_ON_UNDEFINED_SYMBOLS=0" # Required after v1.38.14 to avoid undefined symbol warnings from our Fortran object files being treated as errors
227-
source ${ISSM_DIR}/externalpackages/emscripten/install/emsdk_env.sh
226+
export EMCC_CFLAGS="-sERROR_ON_UNDEFINED_SYMBOLS=0" # Required after v1.38.14 to avoid undefined symbol warnings from our Fortran object files being treated as errors
227+
source ${EMSCRIPTEN_ROOT}/emsdk_env.sh
228228
fi
229229

230230
# }}}

jenkins/ross-debian_linux-javascript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ EXTERNALPACKAGES="
2929
cmake install.sh
3030
emscripten install.sh
3131
gsl install-javascript.sh
32-
triangle install-linux-javascript.sh
32+
triangle install-javascript.sh
3333
shell2junit install.sh
3434
"
3535

src/wrappers/Triangle/Triangle.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
#define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
1717
#endif
1818

19-
#ifdef _HAVE_JAVASCRIPT_MODULES_
20-
#undef _DO_NOT_LOAD_GLOBALS_ /*only module where this needs to be undefined, so as to
21-
not include IssmComm several times in the JavaScript module construct.*/
22-
#endif
23-
2419
/*Header files: */
2520
#include "../bindings.h"
2621
#include "../../c/main/globals.h"

0 commit comments

Comments
 (0)