Skip to content

Commit

Permalink
std @40009
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek committed Jan 26, 2024
1 parent b2ee88f commit 5a1da18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ tasks.addRule("Pattern: emccCompileWasm_<FILE>Cc: Compile <FILE>.cc into <FILE>.
def commandline = emccCommand
commandline += ' -DIN_GIAC -DGIAC_GENERIC_CONSTANTS -DHAVE_CONFIG_H -DNO_STDEXCEPT -fno-exceptions' // from old Makefile
commandline += ' -DVERSION=' + giacVersion
commandline += " -Dgammaf=tgammaf -s ALLOW_MEMORY_GROWTH=1"
commandline += " -Dgammaf=tgammaf -s ALLOW_MEMORY_GROWTH=1 -std=gnu++14"
commandline += " -s WASM=1 -s NO_EXIT_RUNTIME=1"
commandline += " -s PRECISE_I64_MATH=1 -Oz" // new setting
commandline += " -DHAVE_UNISTD_H"
Expand Down Expand Up @@ -986,7 +986,7 @@ task emccGiacJsWasm(dependsOn: 'emccCompileWasm') {
linkerArgs << LlvmGmpA
linkerArgs << '--js-library' << 'src/giac.js/js/time.js'

linkerArgs << '-DGIAC_GGB'
linkerArgs << '-DGIAC_GGB' << "-std=gnu++14"
linkerArgs << '-o' << output
// linkerArgs << "-s" << "DISABLE_EXCEPTION_CATCHING=0"
linkerArgs << '-Oz' << '-v' << '-s' << "EXPORTED_FUNCTIONS=['_caseval']"
Expand Down

0 comments on commit 5a1da18

Please sign in to comment.