mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-14 10:53:14 +01:00
Do not append unique suffix to asm file when -output-s is given.
This fixes a regression introduced by commit 50f145640
(pull request #473).
This commit is contained in:
@@ -169,7 +169,8 @@ void writeModule(llvm::Module* m, std::string filename)
|
||||
llvm::sys::Path spath(filename);
|
||||
spath.eraseSuffix();
|
||||
spath.appendSuffix(std::string(global.s_ext));
|
||||
spath.createTemporaryFileOnDisk();
|
||||
if (!global.params.output_s)
|
||||
spath.createTemporaryFileOnDisk();
|
||||
#endif
|
||||
|
||||
Logger::println("Writing native asm to: %s\n", spath.c_str());
|
||||
|
||||
Reference in New Issue
Block a user