[Openmp-commits] [PATCH] D55772: [OpenMP][libomptarget] Suppress C++ 11 related warnings when building libomptarget-nvptx bitcode library

Gheorghe-Teodor Bercea via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Dec 17 08:39:40 PST 2018


gtbercea created this revision.
gtbercea added reviewers: ABataev, caomhin.
Herald added subscribers: openmp-commits, guansong, mgorny, jholewinski.

Pass -std=c++11 flag to compiler to suppress C++ 11 related warnings when building NVPTX bitcode library.


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D55772

Files:
  libomptarget/cmake/Modules/LibomptargetNVPTXBitcodeLibrary.cmake


Index: libomptarget/cmake/Modules/LibomptargetNVPTXBitcodeLibrary.cmake
===================================================================
--- libomptarget/cmake/Modules/LibomptargetNVPTXBitcodeLibrary.cmake
+++ libomptarget/cmake/Modules/LibomptargetNVPTXBitcodeLibrary.cmake
@@ -79,7 +79,7 @@
 
 # These flags are required to emit LLVM Bitcode. We check them together because
 # if any of them are not supported, there is no point in finding out which are.
-set(compiler_flags_required -emit-llvm -O1 --cuda-device-only --cuda-path=${CUDA_TOOLKIT_ROOT_DIR})
+set(compiler_flags_required -emit-llvm -O1 --cuda-device-only -std=c++11 --cuda-path=${CUDA_TOOLKIT_ROOT_DIR})
 set(compiler_flags_required_src "extern \"C\" __device__ int thread() { return threadIdx.x; }")
 check_bitcode_compilation(LIBOMPTARGET_NVPTX_CUDA_COMPILER_SUPPORTS_FLAGS_REQUIRED "${compiler_flags_required_src}" ${compiler_flags_required})
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55772.178472.patch
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20181217/ea20df3b/attachment.bin>


More information about the Openmp-commits mailing list