mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
pass -std=c++11 to Clang for C++ code
This commit is contained in:
parent
879df617df
commit
bd7ef24734
2
makefile
2
makefile
@ -139,7 +139,7 @@ endif
|
|||||||
input = List
|
input = List
|
||||||
|
|
||||||
ifeq ($(use-clang),true)
|
ifeq ($(use-clang),true)
|
||||||
build-cxx = clang
|
build-cxx = clang -std=c++11
|
||||||
build-cc = clang
|
build-cc = clang
|
||||||
else
|
else
|
||||||
build-cxx = g++
|
build-cxx = g++
|
||||||
|
@ -1578,7 +1578,7 @@ class ConstantSite: public Site {
|
|||||||
virtual unsigned toString(Context*, char* buffer, unsigned bufferSize) {
|
virtual unsigned toString(Context*, char* buffer, unsigned bufferSize) {
|
||||||
if (value->resolved()) {
|
if (value->resolved()) {
|
||||||
return vm::snprintf
|
return vm::snprintf
|
||||||
(buffer, bufferSize, "constant %"LLD, value->value());
|
(buffer, bufferSize, "constant %" LLD, value->value());
|
||||||
} else {
|
} else {
|
||||||
return vm::snprintf(buffer, bufferSize, "constant unresolved");
|
return vm::snprintf(buffer, bufferSize, "constant unresolved");
|
||||||
}
|
}
|
||||||
@ -1669,7 +1669,7 @@ class AddressSite: public Site {
|
|||||||
virtual unsigned toString(Context*, char* buffer, unsigned bufferSize) {
|
virtual unsigned toString(Context*, char* buffer, unsigned bufferSize) {
|
||||||
if (address->resolved()) {
|
if (address->resolved()) {
|
||||||
return vm::snprintf
|
return vm::snprintf
|
||||||
(buffer, bufferSize, "address %"LLD, address->value());
|
(buffer, bufferSize, "address %" LLD, address->value());
|
||||||
} else {
|
} else {
|
||||||
return vm::snprintf(buffer, bufferSize, "address unresolved");
|
return vm::snprintf(buffer, bufferSize, "address unresolved");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user