[LLVMbugs] [Bug 23492] New: -fopenmp does not define _OPENMP macro
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 12 04:39:31 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: zhouyan at me.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150512/6e77690c/attachment.html>
More information about the llvm-bugs
mailing list