X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectfile.cpp;h=778f74642acc72ca476f2a70224db1e886f7bd2e;hb=a2adbd9c0a8d7a7567848c4c6bdbf0de6ba32bb1;hp=c5a87fde883117e61d2cafdce85bae1a4656213e;hpb=7567502e17be7704d58ced2f49703fcf71c7ef38;p=builder.git diff --git a/source/objectfile.cpp b/source/objectfile.cpp index c5a87fd..778f746 100644 --- a/source/objectfile.cpp +++ b/source/objectfile.cpp @@ -6,7 +6,7 @@ Distributed under the LGPL */ #include -#include +#include #include "builder.h" #include "compile.h" #include "component.h" @@ -96,5 +96,5 @@ Action *ObjectFile::create_action() string ObjectFile::generate_target_name(const Component &comp, const string &src) { const SourcePackage &pkg=comp.get_package(); - return (pkg.get_temp_dir()/comp.get_name()/(splitext(basename(src)).base+".o")).str(); + return (pkg.get_temp_dir()/comp.get_name()/(FS::basepart(FS::basename(src))+".o")).str(); }