Build fixes

This commit is contained in:
Flyinghead 2018-08-02 18:44:51 +02:00
parent 1e661a4d45
commit feaca43b25
2 changed files with 6 additions and 5 deletions

View File

@ -350,7 +350,9 @@ static void deposterizeV(u32* data, u32* out, int w, int h, int l, int u) {
void parallelize(const std::function<void(int,int)> &func, int start, int end, int width /* = 0 */) void parallelize(const std::function<void(int,int)> &func, int start, int end, int width /* = 0 */)
{ {
int tcount = max(1, omp_get_num_procs() - 1); int tcount = omp_get_num_procs() - 1;
if (tcount < 1)
tcount = 1;
tcount = min(tcount, (int)settings.pvr.MaxThreads); tcount = min(tcount, (int)settings.pvr.MaxThreads);
#pragma omp parallel num_threads(tcount) #pragma omp parallel num_threads(tcount)
{ {

View File

@ -236,9 +236,9 @@ endif
RZDCY_SRC_DIR = $(LOCAL_PATH)/../../core RZDCY_SRC_DIR = $(LOCAL_PATH)/../../core
include $(RZDCY_SRC_DIR)/core.mk include $(RZDCY_SRC_DIR)/core.mk
LDFLAGS += -g -Wl,-Map,$(notdir $@).map,--gc-sections -Wl,-O3 -Wl,--sort-common LDFLAGS += -g -Wl,-Map,$(notdir $@).map,--gc-sections -Wl,-O3 -Wl,--sort-common -fopenmp
CFLAGS += -g -O3 -D RELEASE -c -D USES_HOMEDIR #-D NO_REND CFLAGS += -g -O3 -D RELEASE -c -D USES_HOMEDIR -fopenmp #-D NO_REND
CFLAGS += -frename-registers -fno-strict-aliasing CFLAGS += -frename-registers -fno-strict-aliasing
CFLAGS += -ffast-math -ftree-vectorize CFLAGS += -ffast-math -ftree-vectorize
@ -319,8 +319,7 @@ ifdef USE_PULSEAUDIO
endif endif
ifdef HAS_SOFTREND ifdef HAS_SOFTREND
CFLAGS += -fopenmp -msse4.1 CFLAGS += -msse4.1
LDFLAGS += -fopenmp
endif endif
# these are also handled on core.mk, but ignored here # these are also handled on core.mk, but ignored here