git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368989
91177308-0d34-0410-b5e6-
96231b3b80d8
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
package llvm
/*
-#cgo CXXFLAGS: -std=c++11
+#cgo CXXFLAGS: -std=c++14
#cgo CPPFLAGS: @LLVM_CFLAGS@
#cgo LDFLAGS: @LLVM_LDFLAGS@
*/
}
return compilerFlags{
cpp: llvmConfig("--cppflags"),
- cxx: "-std=c++11" + " " + stdLibOption,
+ cxx: "-std=c++14" + " " + stdLibOption,
ld: ldflags,
}
}