Skip to content

Commit

Permalink
Update src/Makefile
Browse files Browse the repository at this point in the history
Co-authored-by: Viktor Söderqvist <[email protected]>
Signed-off-by: Parth <[email protected]>
  • Loading branch information
parthpatel and zuiderkwast authored Nov 12, 2024
1 parent 5bb9606 commit 05e12e9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,15 @@ ENGINE_TEST_OBJ:=$(sort $(patsubst unit/%.c,unit/%.o,$(ENGINE_TEST_FILES)))
ENGINE_UNIT_TESTS:=$(ENGINE_NAME)-unit-tests$(PROG_SUFFIX)
ALL_SOURCES=$(sort $(patsubst %.o,%.c,$(ENGINE_SERVER_OBJ) $(ENGINE_CLI_OBJ) $(ENGINE_BENCHMARK_OBJ)))

# If USE_FAST_FLOAT is yes, then add fast_float libraries as requirements to build server and cli object.
ifeq ($(USE_FAST_FLOAT),yes)
ENGINE_SERVER_OBJ+= fast_float/fast_float_strtod.o
ENGINE_CLI_OBJ+= fast_float/fast_float_strtod.o
ENGINE_SERVER_OBJ += fast_float/fast_float_strtod.o
ENGINE_CLI_OBJ += fast_float/fast_float_strtod.o
FINAL_CFLAGS += -D USE_FAST_FLOAT
ifeq (clang,$(CLANG))
FINAL_LIBS += -lc++
else
FINAL_LIBS += -lstdc++
endif
endif


Expand Down

0 comments on commit 05e12e9

Please sign in to comment.