mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-22204 toolutil: Fix crash when trying to generate MinGW assembly
This commit is contained in:
parent
b6b7b045e9
commit
e7aad77f31
1 changed files with 7 additions and 4 deletions
|
@ -315,12 +315,11 @@ writeAssemblyCode(
|
|||
exit(U_ILLEGAL_ARGUMENT_ERROR);
|
||||
}
|
||||
uprv_strcpy(outFilePath, buffer.chars);
|
||||
}
|
||||
|
||||
#if defined (WINDOWS_WITH_GNUC) && U_PLATFORM != U_PF_CYGWIN
|
||||
/* Need to fix the file separator character when using MinGW. */
|
||||
swapFileSepChar(outFilePath, U_FILE_SEP_CHAR, '/');
|
||||
/* Need to fix the file separator character when using MinGW. */
|
||||
swapFileSepChar(outFilePath, U_FILE_SEP_CHAR, '/');
|
||||
#endif
|
||||
}
|
||||
|
||||
if(optEntryPoint != NULL) {
|
||||
uprv_strcpy(entry, optEntryPoint);
|
||||
|
@ -433,6 +432,10 @@ writeCCode(
|
|||
exit(U_ILLEGAL_ARGUMENT_ERROR);
|
||||
}
|
||||
uprv_strcpy(outFilePath, buffer);
|
||||
#if defined (WINDOWS_WITH_GNUC) && U_PLATFORM != U_PF_CYGWIN
|
||||
/* Need to fix the file separator character when using MinGW. */
|
||||
swapFileSepChar(outFilePath, U_FILE_SEP_CHAR, '/');
|
||||
#endif
|
||||
}
|
||||
|
||||
out=T_FileStream_open(buffer, "w");
|
||||
|
|
Loading…
Add table
Reference in a new issue