pass -std=c++11 to Clang for C++ code

This commit is contained in:
Joel Dice 2012-06-01 17:57:42 -06:00
parent 879df617df
commit bd7ef24734
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ endif
input = List
ifeq ($(use-clang),true)
build-cxx = clang
build-cxx = clang -std=c++11
build-cc = clang
else
build-cxx = g++

View File

@ -1578,7 +1578,7 @@ class ConstantSite: public Site {
virtual unsigned toString(Context*, char* buffer, unsigned bufferSize) {
if (value->resolved()) {
return vm::snprintf
(buffer, bufferSize, "constant %"LLD, value->value());
(buffer, bufferSize, "constant %" LLD, value->value());
} else {
return vm::snprintf(buffer, bufferSize, "constant unresolved");
}
@ -1669,7 +1669,7 @@ class AddressSite: public Site {
virtual unsigned toString(Context*, char* buffer, unsigned bufferSize) {
if (address->resolved()) {
return vm::snprintf
(buffer, bufferSize, "address %"LLD, address->value());
(buffer, bufferSize, "address %" LLD, address->value());
} else {
return vm::snprintf(buffer, bufferSize, "address unresolved");
}