Skip to content

Commit

Permalink
openssl: remove temporary file after use
Browse files Browse the repository at this point in the history
  • Loading branch information
Doekin committed Dec 31, 2024
1 parent 409ef37 commit 6d5fbd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/o/openssl/makefile/patch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function _patch_for_llvm_rc(package, opt)
local tmpfile = path.unix(os.tmpfile() .. ".c")
io.writefile(tmpfile, "int main(void) { return 0; }\n")
local compile_out, compile_err = try {function() return os.iorun(format("%s -v %s %s", cc, cflags, tmpfile)) end}
os.tryrm(tmpfile)
local include_dirs = {}
local in_include_section = false
for _, verbose_command in ipairs({compile_out, compile_err}) do
Expand Down

0 comments on commit 6d5fbd8

Please sign in to comment.