Support building with clang

This commit is contained in:
cf-zhao 2024-10-30 17:27:45 +08:00
parent 97813fb924
commit 74386967ea

View File

@ -26,10 +26,10 @@ NODOTABIVER= 51
DEFAULT_CC = gcc DEFAULT_CC = gcc
# #
# LuaJIT builds as a native 32 or 64 bit binary by default. # LuaJIT builds as a native 32 or 64 bit binary by default.
CC= $(DEFAULT_CC) CC?= $(DEFAULT_CC)
# #
# Use this if you want to force a 32 bit build on a 64 bit multilib OS. # Use this if you want to force a 32 bit build on a 64 bit multilib OS.
#CC= $(DEFAULT_CC) -m32 #CC?= $(DEFAULT_CC) -m32
# #
# Since the assembler part does NOT maintain a frame pointer, it's pointless # Since the assembler part does NOT maintain a frame pointer, it's pointless
# to slow down the C part by not omitting it. Debugging, tracebacks and # to slow down the C part by not omitting it. Debugging, tracebacks and