Skip to content

Commit

Permalink
[LibOS] Compile openmp test properly with Clang
Browse files Browse the repository at this point in the history
Make sure we still use our patched libgomp.

Signed-off-by: Paweł Marczewski <pawel@invisiblethingslab.com>
  • Loading branch information
pwmarcz committed Aug 30, 2021
1 parent d35f016 commit 44393dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LibOS/shim/test/regression/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ CFLAGS-debug = -g3
CFLAGS-debug_regs-x86_64 = -g3
CFLAGS-exec_same = -pthread
CFLAGS-shared_object = -fPIC -pie
CFLAGS-openmp = -fopenmp
CFLAGS-multi_pthread = -pthread
CFLAGS-exit_group = -pthread
CFLAGS-abort_multithread = -pthread
Expand All @@ -157,6 +156,12 @@ LDLIBS-attestation += ../../../../common/src/crypto/mbedtls/install/lib/libmbedc
CFLAGS-fp_multithread += -pthread -fno-builtin # see comment in the test's source
LDLIBS-fp_multithread += -lm

ifeq ($(findstring clang,$(CC)),clang)
CFLAGS-openmp = -fopenmp=libgomp
else
CFLAGS-openmp = -fopenmp
endif

proc_common: proc_common.o dump.o
$(call cmd,cmulti)

Expand Down

0 comments on commit 44393dc

Please sign in to comment.