Build fixes
This commit is contained in:
parent
1e661a4d45
commit
feaca43b25
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue