Browse Source

Fix clang windows build

Signed-off-by: falkTX <falktx@falktx.com>
pull/272/head
falkTX 3 years ago
parent
commit
21cb97c688
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      Makefile
  2. +4
    -4
      Makefile.base.mk

+ 1
- 1
Makefile View File

@@ -52,7 +52,7 @@ else
gen:
endif

tests:
tests: dgl
$(MAKE) -C tests

# --------------------------------------------------------------


+ 4
- 4
Makefile.base.mk View File

@@ -38,6 +38,9 @@ endif
ifneq (,$(findstring mingw,$(TARGET_MACHINE)))
WINDOWS=true
endif
ifneq (,$(findstring windows,$(TARGET_MACHINE)))
WINDOWS=true
endif

endif
endif
@@ -165,10 +168,7 @@ BASE_OPTS = -O2 -ffast-math -fdata-sections -ffunction-sections
endif

ifeq ($(WINDOWS),true)
# mingw has issues with this specific optimization
# See https://github.com/falkTX/Carla/issues/696
BASE_OPTS += -fno-rerun-cse-after-loop
# See https://github.com/falkTX/Carla/issues/855
# Needed for windows, see https://github.com/falkTX/Carla/issues/855
BASE_OPTS += -mstackrealign
else
# Not needed for Windows


Loading…
Cancel
Save