@@ -1436,7 +1436,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
1436
1436
1437
1437
if (Input->DataKind == AMD_COMGR_DATA_KIND_BC) {
1438
1438
if (env::shouldEmitVerboseLogs ()) {
1439
- LogS << " \t Linking Bitcode: " << InputDir << " / " << Input->Name
1439
+ LogS << " \t Linking Bitcode: " << InputDir << path::get_separator () << Input->Name
1440
1440
<< " \n " ;
1441
1441
}
1442
1442
@@ -1458,7 +1458,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
1458
1458
return AMD_COMGR_STATUS_ERROR;
1459
1459
} else if (Input->DataKind == AMD_COMGR_DATA_KIND_BC_BUNDLE) {
1460
1460
if (env::shouldEmitVerboseLogs ()) {
1461
- LogS << " Linking Bundle: " << InputDir << " / " << Input->Name
1461
+ LogS << " Linking Bundle: " << InputDir << path::get_separator () << Input->Name
1462
1462
<< " \n " ;
1463
1463
}
1464
1464
@@ -1501,7 +1501,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
1501
1501
// on Windows. Replace with '_'
1502
1502
std::replace (OutputFileName.begin (), OutputFileName.end (), ' :' , ' _' );
1503
1503
1504
- std::string OutputFilePath = OutputDir.str ().str () + " / " + OutputFileName;
1504
+ std::string OutputFilePath = OutputDir.str ().str () + path::get_separator (). str () + OutputFileName;
1505
1505
BundlerConfig.OutputFileNames .push_back (OutputFilePath);
1506
1506
1507
1507
OffloadBundler Bundler (BundlerConfig);
@@ -1556,7 +1556,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
1556
1556
// Unbundle bitcode archive
1557
1557
else if (Input->DataKind == AMD_COMGR_DATA_KIND_AR_BUNDLE) {
1558
1558
if (env::shouldEmitVerboseLogs ()) {
1559
- LogS << " \t Linking Archive: " << InputDir << " / " << Input->Name
1559
+ LogS << " \t Linking Archive: " << InputDir << path::get_separator () << Input->Name
1560
1560
<< " \n " ;
1561
1561
}
1562
1562
@@ -1602,7 +1602,7 @@ amd_comgr_status_t AMDGPUCompiler::linkBitcodeToBitcode() {
1602
1602
// on Windows. Replace with '_'
1603
1603
std::replace (OutputFileName.begin (), OutputFileName.end (), ' :' , ' _' );
1604
1604
1605
- std::string OutputFilePath = OutputDir.str ().str () + " / " + OutputFileName;
1605
+ std::string OutputFilePath = OutputDir.str ().str () + path::get_separator (). str () + OutputFileName;
1606
1606
BundlerConfig.OutputFileNames .push_back (OutputFilePath);
1607
1607
1608
1608
OffloadBundler Bundler (BundlerConfig);
0 commit comments