name += format("-%s", fpu);
name += format("-%d-%s-%s", bits, system, toolchain);
+ object_patterns.push_back(Pattern("%.o"));
if(system=="windows")
{
sharedlib_patterns.push_back(Pattern("%.dll"));
std::string name;
bool native;
std::string cross_prefix;
+ PatternList object_patterns;
PatternList sharedlib_patterns;
PatternList staticlib_patterns;
PatternList executable_patterns;
const std::string &get_cross_prefix() const { return cross_prefix; }
+ const PatternList &get_object_patterns() const { return object_patterns; }
const PatternList &get_shared_library_patterns() const { return sharedlib_patterns; }
const PatternList &get_static_library_patterns() const { return staticlib_patterns; }
const PatternList &get_executable_patterns() const { return executable_patterns; }
if(*i!=".")
fn += *i;
}
- return temp_dir/(FS::basepart(fn)+".o");
+ const Architecture &arch = comp.get_package().get_builder().get_current_arch();
+ return temp_dir/arch.get_object_patterns().front().apply(FS::basepart(fn));
}
void ObjectFile::set_used_in_shared_library(bool u)