This commit is contained in:
Allen Webster 2020-02-19 20:55:01 -08:00
parent 57f7d41ddf
commit 1f2b9c7541
2 changed files with 1 additions and 3 deletions

View File

@ -294,7 +294,7 @@ build(Arena *arena, u32 flags, u32 arch, char *code_path, char **code_files, cha
"-Wno-write-strings " \ "-Wno-write-strings " \
"-D_GNU_SOURCE -fPIC " \ "-D_GNU_SOURCE -fPIC " \
"-fno-threadsafe-statics -pthread " \ "-fno-threadsafe-statics -pthread " \
"-Wno-unused-result" \ "-Wno-unused-result " \
"-std=c++11" "-std=c++11"
#define GCC_LIBS_COMMON \ #define GCC_LIBS_COMMON \
@ -374,7 +374,6 @@ build(Arena *arena, u32 flags, u32 arch, char *code_path, char **code_files, cha
fm_finish_build_line(&line); fm_finish_build_line(&line);
Temp_Dir temp = fm_pushdir(out_path); Temp_Dir temp = fm_pushdir(out_path);
printf("g++ %s -o %s", line.build_options, out_file);
systemf("g++ %s -o %s", line.build_options, out_file); systemf("g++ %s -o %s", line.build_options, out_file);
fm_popdir(temp); fm_popdir(temp);
} }

View File

@ -29,7 +29,6 @@ FLAGS="-D_GNU_SOURCE -fPIC -fpermissive $BUILD_MODE"
INCLUDES="-I$SRC_ROOT -I$CUSTOM_ROOT" INCLUDES="-I$SRC_ROOT -I$CUSTOM_ROOT"
# Execute # Execute
echo g++ $WARNINGS $FLAGS $INCLUDES "$BIN_ROOT/4ed_build.cpp" -g -o "$BUILD_ROOT/build"
g++ $WARNINGS $FLAGS $INCLUDES "$BIN_ROOT/4ed_build.cpp" -g -o "$BUILD_ROOT/build" g++ $WARNINGS $FLAGS $INCLUDES "$BIN_ROOT/4ed_build.cpp" -g -o "$BUILD_ROOT/build"
pushd "$SRC_ROOT" pushd "$SRC_ROOT"
"$BUILD_ROOT/build" "$BUILD_ROOT/build"