]> granicus.if.org Git - llvm/commitdiff
Bump llvm-go to C++14
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 15 Aug 2019 10:55:25 +0000 (10:55 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 15 Aug 2019 10:55:25 +0000 (10:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368989 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/go/README.txt
bindings/go/llvm/llvm_config.go.in
tools/llvm-go/llvm-go.go

index 6ed224d8280e759c4df496cf44073579aa859cd0..75cca5a82b4fd3a9e907416c139f77715e7b88f6 100644 (file)
@@ -48,7 +48,7 @@ Alternatively, you can build LLVM yourself, but you must then set the
 CGO_CPPFLAGS, CGO_CXXFLAGS and CGO_LDFLAGS environment variables:
 
     $ export CGO_CPPFLAGS="`/path/to/llvm-build/bin/llvm-config --cppflags`"
-    $ export CGO_CXXFLAGS=-std=c++11
+    $ export CGO_CXXFLAGS=-std=c++14
     $ export CGO_LDFLAGS="`/path/to/llvm-build/bin/llvm-config --ldflags --libs --system-libs all`"
     $ go build -tags byollvm
 
index 41854fa7995d51d8bd8cedf044853c468ce2a4f9..4c63ed10cfb77ea3ce91798601842fa3f8af8278 100644 (file)
@@ -3,7 +3,7 @@
 package llvm
 
 /*
-#cgo CXXFLAGS: -std=c++11
+#cgo CXXFLAGS: -std=c++14
 #cgo CPPFLAGS: @LLVM_CFLAGS@
 #cgo LDFLAGS: @LLVM_LDFLAGS@
 */
index 8fbd3c66b3f3cd5851ba1b93ba3fed300c034187..a0561dd5fd8d9bded1c179371f65dba2f1d0937c 100644 (file)
@@ -103,7 +103,7 @@ func llvmFlags() compilerFlags {
        }
        return compilerFlags{
                cpp: llvmConfig("--cppflags"),
-               cxx: "-std=c++11" + " " + stdLibOption,
+               cxx: "-std=c++14" + " " + stdLibOption,
                ld:  ldflags,
        }
 }