]> git.tdb.fi Git - builder.git/blobdiff - source/objectfile.cpp
Better encapsulation of config inside Package
[builder.git] / source / objectfile.cpp
index 2aab39b430906eec4f2bde29ed1a0357c1af7dab..3f4ba2019f32a835449d72ce336f0f08076573d7 100644 (file)
@@ -85,5 +85,5 @@ void ObjectFile::add_depend(Target *tgt)
 
 string ObjectFile::generate_target_name(const Component &comp, const string &src)
 {
-       return (comp.get_package().get_source()/"temp"/comp.get_name()/(Path::splitext(src.substr(src.rfind('/')+1)).base+".o")).str();
+       return (comp.get_package().get_temp_dir()/comp.get_name()/(Path::splitext(src.substr(src.rfind('/')+1)).base+".o")).str();
 }