fast-chess
fast-chess copied to clipboard
feat: make release build clang compatible
--no-as-needed flag doesnt seem to work with clang
when running make -j build=release CXX=clang++
pgn/pgn_builder.o tmp/src/pgn/pgn_reader.o tmp/src/time/timecontrol.o tmp/src/util/logger/logger.o -lpthread -static -static-libgcc -static-libstdc++ -Wl,--no-as-needed
lld: error: unknown argument: --no-as-needed
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:121: fast-chess] Error 1
--no-as-needed flag also doesnt seem to do anything with GCC, it produces the same binary size regardless of whether or not it is specified, so might as well remove it