File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ ifeq ($(TARGET), C910V)
5555TARGET_FLAGS = -march=rv64gcv0p7_zfh_xtheadc -mabi=lp64d
5656endif
5757
58+ ifeq ($(USE_OPENMP), 1)
59+ EXFLAGS += -fopenmp
60+ endif
61+
5862all: getarch_2nd
5963 ./getarch_2nd 0 >> $(TARGET_MAKE)
6064 ./getarch_2nd 1 >> $(TARGET_CONF)
Original file line number Diff line number Diff line change @@ -1941,6 +1941,10 @@ printf("ELF_VERSION=2\n");
19411941 printf ("MAKEFLAGS += -j %d\n" , get_num_cores ());
19421942#endif
19431943
1944+ #if defined(_OPENMP )
1945+ printf ("OPENMP_VERSION = %d\n" , _OPENMP );
1946+ #endif
1947+
19441948 break ;
19451949
19461950 case '1' : /* For config.h */
Original file line number Diff line number Diff line change 2626# this does not work with OpenMP nor with native Windows or Android threads
2727# FIXME TBD if this works on OSX, SunOS, POWER and zarch
2828ifeq ($(OSNAME ) , $(filter $(OSNAME ) ,Linux CYGWIN_NT) )
29- ifneq ($(USE_OPENMP ) , 1)
29+ ifeq ($(shell test x" $( USE_OPENMP ) " -ne x1 -o $( OPENMP_VERSION ) -ge 201811 && echo 1 ) , 1)
3030OBJS += test_fork.o
3131endif
3232OBJS += test_post_fork.o
You can’t perform that action at this time.
0 commit comments