https://llvm.org/bugs/show_bug.cgi?id=23492

            Bug ID: 23492
           Summary: -fopenmp does not define _OPENMP macro
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Following recent news of Clang is OpenMP 3.1 complete, which is wonderful, I
tried to use clang with OpenMP support. Before I can run any more test, it
seems that the _OPENMP macro is not properly defined at all.

The following is a minimal example

#ifndef _OPENMP
#error NO OPENMP defined
#endif

int main () {}

And on compile line clang++ -fopenmp -o test test.cpp (or clang)

The following is more details of the build of clang
OS : CentOS 7 (updated daily)

LLVM subprojects in the build tree: LLVM, clang, compiler-rt, polly,
clang-extra-tools, libcxx, libcxxabi

CMake options: 

args="$args -DCMAKE_BUILD_TYPE=Release"
args="$args -DCMAKE_INSTALL_PREFIX=/opt/LLVM/$prefix"
args="$args -DBUILD_SHARED_LIBS=ON"
args="$args -DLLVM_ENABLE_BACKTRACES=OFF"
args="$args -DLLVM_ENABLE_CRASH_OVERRIDES=OFF"
args="$args -DLLVM_ENABLE_PEDANTIC=OFF"
args="$args -DLLVM_ENABLE_WARNINGS=OFF"
args="$args -DLLVM_INCLUDE_DOCS=OFF"
args="$args -DLLVM_INCLUDE_EXAMPLES=OFF"
args="$args -DLLVM_INCLUDE_TESTS=OFF"
args="$args -DLLVM_TARGETS_TO_BUILD=host"

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to