Skip to content

Commit

Permalink
Fix a C++ standard conflict between pocl & LLVM
Browse files Browse the repository at this point in the history
for files compiled with LLVM flags, always let the LLVM flags
determine the C++ standard (-std=XYZ) instead of using pocl's
project-wide setting (CMAKE_CXX_STANDARD)
  • Loading branch information
franz committed Feb 13, 2020
1 parent f3c9db2 commit 76ce2f9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/CL/CMakeLists.txt
Expand Up @@ -23,6 +23,11 @@
#
#=============================================================================

# this is required, because we're compiling the C++ files of this directory
# with LLVM-provided flags, which usually contain their own setting of
# C++ standard, which may be in conflict with pocl's default C++ standard.
unset(CMAKE_CXX_STANDARD)

if(SANITIZER_OPTIONS)
add_compile_options(${SANITIZER_OPTIONS})
endif()
Expand Down
5 changes: 5 additions & 0 deletions lib/llvmopencl/CMakeLists.txt
Expand Up @@ -23,6 +23,11 @@
#
#=============================================================================

# this is required, because we're compiling these files with LLVM-provided flags, which
# usually contain their own setting of C++ standard, which may be in conflict
# with pocl's default C++ standard.
unset(CMAKE_CXX_STANDARD)

set(LLVMPASSES_SOURCES "AllocasToEntry.cc"
"AllocasToEntry.h"
"AutomaticLocals.cc"
Expand Down

0 comments on commit 76ce2f9

Please sign in to comment.