ObjectFile::ObjectFile(Builder &b, const Component &c, SourceFile &s):
FileTarget(b, c.get_package(), generate_target_path(c, s.get_path())),
- source(s)
+ source(s),
+ used_in_shlib(false)
{
component = &c;
add_dependency(source);
return temp_dir/(FS::basepart(fn)+".o");
}
+void ObjectFile::set_used_in_shared_library(bool u)
+{
+ used_in_shlib = u;
+}
+
void ObjectFile::collect_build_info(BuildInfo &binfo) const
{
Target::collect_build_info(binfo);