Skip to content
Snippets Groups Projects
Commit d43cb466 authored by Zuzana Baranová's avatar Zuzana Baranová
Browse files

tools: Make divcc also work with relative paths.

parent a3d9f5f8
No related branches found
No related tags found
No related merge requests found
......@@ -262,7 +262,7 @@ int main( int argc, char **argv )
auto po = cc::parseOpts( opts );
using brick::fs::joinPath;
using brick::fs::absolutePrefix;
using brick::fs::splitFileName;
using divine::cc::includeDir;
po.opts.insert( po.opts.end(), {
......@@ -299,8 +299,7 @@ int main( int argc, char **argv )
{
std::string ifn = srcFile.get< cc::File >().name;
std::string ofn = brick::fs::dropExtension( ifn );
auto abs = absolutePrefix( ofn );
ofn = abs.second;
ofn = splitFileName( ofn ).second;
if ( po.outputFile != "" && po.toObjectOnly )
ofn = po.outputFile;
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment