Allow user-provided -std=* argument to override the default

This means any user-provided -std=* argument overrides this one,
allowing use of newer standards.
This commit is contained in:
Chris Kitching
2017-10-19 14:11:15 +01:00
bovenliggende db7661ccad
commit 742526706b
+3 -1
Bestand weergeven
@@ -4281,7 +4281,9 @@ int main(int argc, const char **argv) {
compilationStages.push_back("--cuda-host-only");
Tool.appendArgumentsAdjuster(getInsertArgumentAdjuster(compilationStages[0], ArgumentInsertPosition::BEGIN));
Tool.appendArgumentsAdjuster(getInsertArgumentAdjuster("-std=c++11"));
// Ensure at least c++11 is used.
Tool.appendArgumentsAdjuster(getInsertArgumentAdjuster("-std=c++11", ArgumentInsertPosition::BEGIN));
#if defined(HIPIFY_CLANG_RES)
Tool.appendArgumentsAdjuster(getInsertArgumentAdjuster("-resource-dir=" HIPIFY_CLANG_RES));
#endif