mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Update path generation for individual include files.
This commit is contained in:
+2
-1
@@ -853,7 +853,8 @@ void Companion::ProcessFile(YAML::Node root) {
|
||||
}
|
||||
|
||||
if (this->gConfig.exporterType == ExportType::Code && this->gIndividualIncludes) {
|
||||
fs::path outinc = fs::path(this->gConfig.outputPath) / this->gCurrentDirectory.parent_path() / (result.name + ".inc.c");
|
||||
fs::path outinc = fs::path(this->gConfig.outputPath) / this->gCurrentDirectory.parent_path() /
|
||||
fs::relative(fs::path(result.name + ".inc.c"), this->gCurrentDirectory.parent_path());
|
||||
|
||||
if(!exists(outinc.parent_path())){
|
||||
create_directories(outinc.parent_path());
|
||||
|
||||
Reference in New Issue
Block a user