stefanhendriks / Dune-II---The-Maker

A remake of the classic Dune 2 - The Building of a Dynasty (by Westwood Studios) with several enhancements. Like: higher screenresolutions, zooming, multiselect, skirmish play, etc.
https://www.dune2themaker.com
301 stars 26 forks source link

Does not compile with CLang 12 #567

Open TCH68k opened 1 year ago

TCH68k commented 1 year ago

If i try to compile the project (0.7.0) with CLang 12 and it dies with a bunch of errors, printed in very a garbageish manner:

[ 23%] Building CXX object CMakeFiles/d2tm.dir/controls/cMouse.cpp.o
clangclangclangclangclangclang: : clang: : : : : errorerrorerror: error: : error: errorerror: : : optimization flag '-fno-fat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]optimization flag '-fno-fat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]optimization flag '-fno-fat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]optimization flag '-fno-fat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]
optimization flag '-fno-fat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]
optimization flag '-fno-fat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]
optimization flag '-fno-fat-lto-objects' is not supported [-Werror,-Wignored-optimization-argument]

The dependencies only list the GCC version, not CLang; is it possible to compile it with CLang at all?