diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index c57d1b26a..d2ff79281 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -78,7 +78,10 @@ endif ifneq (0,$(RELEASE)) # Debugging disabled - debug=-funswitch-loops -O$(OPTLEVEL) + debug=-O$(OPTLEVEL) + ifneq ($(CC),clang) + debug=-funswitch-loops + endif ifeq (0,$(DEBUGANYWAY)) debug+= -fomit-frame-pointer endif diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index e30206351..ca83a356f 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -1806,6 +1806,13 @@ int32_t checksectorpointer(int16_t i, int16_t sectnum) #undef WALLS_ARE_CONSISTENT +#ifdef __clang__ +int32_t engine_dummy_function_to_keep_symbols(void) +{ + return shlookup[0] | sqrtable[0]; +} +#endif + #if defined(_MSC_VER) && !defined(NOASM) diff --git a/polymer/eduke32/build/src/kplib.c b/polymer/eduke32/build/src/kplib.c index 1dd2d6b2c..2b830acbd 100644 --- a/polymer/eduke32/build/src/kplib.c +++ b/polymer/eduke32/build/src/kplib.c @@ -188,6 +188,13 @@ static int32_t gotcmov = -2, abstab10[1024] ASMNAME("abstab10"); static int32_t qhufval0[1<