llvm.org GIT mirror llvm / 7b52c1a
Bump llvm-go to C++14 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368989 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer a month ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
4747 CGO_CPPFLAGS, CGO_CXXFLAGS and CGO_LDFLAGS environment variables:
4848
4949 $ export CGO_CPPFLAGS="`/path/to/llvm-build/bin/llvm-config --cppflags`"
50 $ export CGO_CXXFLAGS=-std=c++11
50 $ export CGO_CXXFLAGS=-std=c++14
5151 $ export CGO_LDFLAGS="`/path/to/llvm-build/bin/llvm-config --ldflags --libs --system-libs all`"
5252 $ go build -tags byollvm
5353
22 package llvm
33
44 /*
5 #cgo CXXFLAGS: -std=c++11
5 #cgo CXXFLAGS: -std=c++14
66 #cgo CPPFLAGS: @LLVM_CFLAGS@
77 #cgo LDFLAGS: @LLVM_LDFLAGS@
88 */
102102 }
103103 return compilerFlags{
104104 cpp: llvmConfig("--cppflags"),
105 cxx: "-std=c++11" + " " + stdLibOption,
105 cxx: "-std=c++14" + " " + stdLibOption,
106106 ld: ldflags,
107107 }
108108 }