Skip to content

Commit

Permalink
Adding libstdc++ changes for various platforms in Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
parthpatel committed Nov 4, 2024
1 parent 955a8fb commit 6aec117
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,13 @@ endif

BUILD_FAST_FLOAT:=yes
ifeq ($(BUILD_FAST_FLOAT),yes)
FINAL_LIBS += ../deps/fast_float_c/fast_float_c.o -lc++
FINAL_LIBS += ../deps/fast_float_c/fast_float_c.o
# Mac uses Clang and the standard c++ library is named libc++. For others, it is named libstdc++.
ifeq (clang,$(CLANG))
FINAL_LIBS+= -lc++
else
FINAL_LIBS+= -lstdc++
endif
endif

ifndef V
Expand Down

0 comments on commit 6aec117

Please sign in to comment.