mirror of https://github.com/bjornbytes/lovr.git
tup: Custom CFLAGS/LDFLAGS, fix THREAD_MODULE config;
This commit is contained in:
parent
79083c7df1
commit
16c4040b27
|
@ -15,7 +15,7 @@ CFLAGS += -Wno-typedef-redefinition
|
|||
CFLAGS += -Wno-unused-parameter
|
||||
|
||||
# stdatomic.h is used for atomic refcounts when threads are enabled, and that's a C11 feature.
|
||||
ifeq (@(MODULE_THREAD),y)
|
||||
ifeq (@(THREAD),y)
|
||||
CFLAGS += -std=c11
|
||||
else
|
||||
CFLAGS += -std=c99
|
||||
|
@ -84,6 +84,9 @@ LDFLAGS += @(OPENVR_LDFLAGS)
|
|||
LDFLAGS += @(OPENXR_LDFLAGS)
|
||||
LDFLAGS += @(ENET_LDFLAGS)
|
||||
|
||||
CFLAGS += @(CFLAGS)
|
||||
LDFLAGS += @(LDFLAGS)
|
||||
|
||||
# Macros
|
||||
!compile = |> ^ CC %f^ @(CC) $(CFLAGS) $(CFLAGS_y) -c %f -o %o |> $(ROOT)/.obj/%B.o $(ROOT)/<objects>
|
||||
!link = |> ^ LD %o^ @(CC) $(LDFLAGS) -o %o |>
|
||||
|
|
|
@ -41,8 +41,11 @@ CONFIG_GL=GL
|
|||
## Compiler options
|
||||
# The CC option stands for "C Compiler". Some common compilers are clang and gcc.
|
||||
# Debug builds compile faster and have debug symbols, but the executable is bigger and slower.
|
||||
# Also, extra compiler flags (CFLAGS) and linker flags (LDFLAGS) can be provided.
|
||||
CONFIG_CC=clang
|
||||
CONFIG_DEBUG=y
|
||||
CONFIG_CFLAGS=
|
||||
CONFIG_LDFLAGS=
|
||||
|
||||
## Libraries
|
||||
# Explicit compiler flags for compilation (CFLAGS) and linking (LDFLAGS) go here.
|
||||
|
|
Loading…
Reference in New Issue