#include <msp/builder/builder.h>
#include <msp/builder/externaltask.h>
#include <msp/builder/filetarget.h>
+#include <msp/core/algorithm.h>
#include <msp/fs/dir.h>
#include <msp/fs/stat.h>
#include <msp/fs/utils.h>
CustomizedTool::do_prepare(tool);
if(tag=="CXX")
{
- tool.build_info.libs.push_back("gnustl_static");
+ auto i = find(tool.build_info.libs, "stdc++");
+ if(i!=tool.build_info.libs.end())
+ *i = "gnustl_static";
+ else
+ tool.build_info.libs.push_back("gnustl_static");
unsigned version = tool.extra_data;
string version_str = format("%d.%d.%d", version>>16, (version>>8)&0xFF, version&0xFF);