}
else
build_info.sysroot = ndk.get_platform_sysroot();
-
- if(tag=="CXX")
- build_info.libs.push_back("gnustl_static");
}
void AndroidCompiler::do_prepare(ToolData &tool) const
CustomizedTool::do_prepare(tool);
if(tag=="CXX")
{
+ 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);
FS::Path libstdcxx_dir = ndk.get_root_dir()/"sources"/"cxx-stl"/"gnu-libstdc++";
version_str = version_str.substr(0, dot);
}
+ builder.get_logger().log("tools", "Found GNU libstdc++ in %s", libstdcxx_path);
+
FS::Path public_dir = libstdcxx_path/"include";
tool.system_path.push_back(public_dir);
tool.build_info.incpath.push_back(public_dir);