mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Bump llvm-go to C++14
llvm-svn: 368989
This commit is contained in:
parent
3b4b98e900
commit
33caf354b4
@ -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
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
package llvm
|
||||
|
||||
/*
|
||||
#cgo CXXFLAGS: -std=c++11
|
||||
#cgo CXXFLAGS: -std=c++14
|
||||
#cgo CPPFLAGS: @LLVM_CFLAGS@
|
||||
#cgo LDFLAGS: @LLVM_LDFLAGS@
|
||||
*/
|
||||
|
@ -103,7 +103,7 @@ func llvmFlags() compilerFlags {
|
||||
}
|
||||
return compilerFlags{
|
||||
cpp: llvmConfig("--cppflags"),
|
||||
cxx: "-std=c++11" + " " + stdLibOption,
|
||||
cxx: "-std=c++14" + " " + stdLibOption,
|
||||
ld: ldflags,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user