[PATCH] D79439: [mlir] Specify CMAKE_CXX_STANDARD to standalone dialect

Lei Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 12:26:17 PDT 2020


antiagainst created this revision.
antiagainst added a reviewer: rriddle.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, shauheen, jpienaar, mehdi_amini, mgorny.
Herald added a project: LLVM.
antiagainst added a reviewer: Kayjukh.
rriddle accepted this revision.
This revision is now accepted and ready to land.

This addresses a compilation failure on GCC 5:

error: #error This file requires compiler and library support for the
ISO C++ 2011 standard. This support must be enabled with the -std=c++11
or -std=gnu++11 compiler options.
 #error This file requires compiler and library support


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79439

Files:
  mlir/examples/standalone/CMakeLists.txt


Index: mlir/examples/standalone/CMakeLists.txt
===================================================================
--- mlir/examples/standalone/CMakeLists.txt
+++ mlir/examples/standalone/CMakeLists.txt
@@ -15,6 +15,8 @@
 
 project(standalone-dialect LANGUAGES CXX C)
 
+set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
+
 find_package(MLIR REQUIRED CONFIG)
 
 message(STATUS "Using MLIRConfig.cmake in: ${MLIR_DIR}")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79439.262187.patch
Type: text/x-patch
Size: 438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200505/e5f60f09/attachment.bin>


More information about the llvm-commits mailing list