mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-10 12:59:21 +03:00
Do the check that gExePath is not a directory (before deleting it) also in release builds.
This commit is contained in:
parent
70c23125cf
commit
0fcd50fb0d
1 changed files with 1 additions and 5 deletions
|
@ -770,11 +770,7 @@ int createStaticLibrary() {
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void deleteExecutable() {
|
||||
if (!gExePath.empty()) {
|
||||
// assert(gExePath.isValid());
|
||||
bool is_directory;
|
||||
assert(!(!llvm::sys::fs::is_directory(gExePath, is_directory) &&
|
||||
is_directory));
|
||||
if (!gExePath.empty() && !llvm::sys::fs::is_directory(gExePath)) {
|
||||
llvm::sys::fs::remove(gExePath);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue