Skip to content

Commit 15130d1

Browse files
author
Oleg Sh
committed
Refactor ProcessAlgorithm to use a global string and update makefile-emcc to remove debug flag
1 parent 5271299 commit 15130d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GraphOffline.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ extern "C" {
8383
const char* ProcessAlgorithm(const char* emscriptParams);
8484
}
8585

86+
std::string res;
8687
const char* ProcessAlgorithm(const char* emscriptParams)
8788
{
88-
static std::string res;
8989
if (strcmp(emscriptParams, EMSCRIPT_DELEMITER) == 0)
9090
{
9191
res = "test";

makefile-emcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ GRAPH_DIR = graph
1717
OBJ_DIR = bin/emscripten/obj
1818

1919
# Declaration of variables
20-
CXX = EMCC_DEBUG=1 emcc
20+
CXX = emcc
2121
CPPFLAGS += -std=c++17 -Wall -I. -I $(ALGORITHM_DIR) -I $(PUGIXML_DIR) -I $(REPORT_DIR) -I $(COMMON_DIR) -I $(GRAPH_DIR) -I $(LIB_DIR) -DEMSCRIPT
2222
LINKFLAGS += -s EXPORTED_FUNCTIONS='_ProcessAlgorithm' -s EXPORTED_RUNTIME_METHODS=ccall,cwrap
2323

0 commit comments

Comments
 (0)