@@ -183,7 +183,7 @@ namespace
183183 {
184184 ssLOG_ERROR (" Setup command \" " << setupStep << " \" failed" );
185185 ssLOG_ERROR (" Failed with result " << setupResult);
186- ssLOG_ERROR (" Failed with output: " << setupOutput);
186+ ssLOG_ERROR (" Failed with output: \n " << setupOutput);
187187 return false ;
188188 }
189189 }
@@ -217,7 +217,7 @@ namespace
217217 resultCode != 0 )
218218 {
219219 ssLOG_ERROR (" Compile command failed with result " << resultCode);
220- ssLOG_ERROR (" Compile output: " << commandOutput);
220+ ssLOG_ERROR (" Compile output: \n " << commandOutput);
221221 return false ;
222222 }
223223 }
@@ -247,7 +247,7 @@ namespace
247247 {
248248 ssLOG_ERROR (" Cleanup command \" " << cleanupStep << " \" failed" );
249249 ssLOG_ERROR (" Failed with result " << cleanupResult);
250- ssLOG_ERROR (" Failed with output: " << cleanupOutput);
250+ ssLOG_ERROR (" Failed with output: \n " << cleanupOutput);
251251 return false ;
252252 }
253253 }
@@ -517,7 +517,7 @@ namespace
517517 {
518518 ssLOG_ERROR (" Setup command \" " << setupStep << " \" failed" );
519519 ssLOG_ERROR (" Failed with result " << setupResult);
520- ssLOG_ERROR (" Failed with output: " << setupOutput);
520+ ssLOG_ERROR (" Failed with output: \n " << setupOutput);
521521 return false ;
522522 }
523523 }
@@ -550,7 +550,7 @@ namespace
550550 resultCode != 0 )
551551 {
552552 ssLOG_ERROR (" Link command failed with result " << resultCode);
553- ssLOG_ERROR (" Link output: " << linkOutput);
553+ ssLOG_ERROR (" Link output: \n " << linkOutput);
554554 return false ;
555555 }
556556 }
@@ -580,7 +580,7 @@ namespace
580580 {
581581 ssLOG_ERROR (" Cleanup command \" " << cleanupStep << " \" failed" );
582582 ssLOG_ERROR (" Failed with result " << cleanupResult);
583- ssLOG_ERROR (" Failed with output: " << cleanupOutput);
583+ ssLOG_ERROR (" Failed with output: \n " << cleanupOutput);
584584 return false ;
585585 }
586586 }
@@ -617,7 +617,7 @@ namespace
617617 {
618618 ssLOG_ERROR (" Command \" " << steps.at (i) << " \" failed" );
619619 ssLOG_ERROR (" Failed with result " << commandResult);
620- ssLOG_ERROR (" Failed with output: " << commandOutput);
620+ ssLOG_ERROR (" Failed with output: \n " << commandOutput);
621621 return false ;
622622 }
623623 }
@@ -626,6 +626,36 @@ namespace
626626 }
627627}
628628
629+ bool runcpp2::CompileScriptOnly (const ghc::filesystem::path& buildDir,
630+ const std::string& scriptPath,
631+ const Data::ScriptInfo& scriptInfo,
632+ const std::vector<Data::DependencyInfo*>& availableDependencies,
633+ const Data::Profile& profile,
634+ bool buildExecutable)
635+ {
636+ if (!RunGlobalSteps (buildDir, profile.Setup ))
637+ {
638+ ssLOG_ERROR (" Failed to run profile global setup steps" );
639+ return false ;
640+ }
641+
642+ std::string scriptObjectFilePath;
643+
644+ if (!CompileScript ( buildDir,
645+ scriptPath,
646+ scriptInfo,
647+ availableDependencies,
648+ profile,
649+ buildExecutable,
650+ scriptObjectFilePath))
651+ {
652+ ssLOG_ERROR (" CompileScript failed" );
653+ return false ;
654+ }
655+
656+ return true ;
657+ }
658+
629659bool runcpp2::CompileAndLinkScript ( const ghc::filesystem::path& buildDir,
630660 const std::string& scriptPath,
631661 const Data::ScriptInfo& scriptInfo,
0 commit comments