From ada96e24aa286f4dd2a37aece3a838aaf00a7bb4 Mon Sep 17 00:00:00 2001 From: idriskalp Date: Thu, 23 Jan 2020 19:43:54 +0300 Subject: [PATCH] openmp fix --- programming/misc/openmp/actions.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/programming/misc/openmp/actions.py b/programming/misc/openmp/actions.py index 7acdabd413..7cb777c221 100644 --- a/programming/misc/openmp/actions.py +++ b/programming/misc/openmp/actions.py @@ -13,21 +13,21 @@ from pisi.actionsapi import pisitools def setup(): - shelltools.export("CC", "clang -fuse-ld=lld -rtlib=compiler-rt") - shelltools.export("CXX", "clang++ -fuse-ld=lld -rtlib=compiler-rt -stdlib=libc++") - options = "-DCMAKE_BUILD_TYPE=Release \ -DLIBOMP_ENABLE_ASSERTIONS=ON \ -DLIBOMP_ENABLE_SHARED=ON \ -DLIBOMP_USE_HIER_SCHED=ON \ " - if get.buildTYPE() == "emul32": - + if get.buildTYPE() == "emul32": + shelltools.export("CC", "clang -fuse-ld=lld -rtlib=compiler-rt -m32") + shelltools.export("CXX", "clang++ -fuse-ld=lld -rtlib=compiler-rt -stdlib=libc++ -m32") options = " -DOPENMP_LIBDIR_SUFFIX=32 \ " else: - options = "-DOPENMP_LIBDIR_SUFFIX= \ + shelltools.export("CC", "clang -fuse-ld=lld -rtlib=compiler-rt") + shelltools.export("CXX", "clang++ -fuse-ld=lld -rtlib=compiler-rt -stdlib=libc++") + options = "-DOPENMP_LIBDIR_SUFFIX= \ " cmaketools.configure(options)