Skip to content
Merged
Prev Previous commit
WASM_X64: Assign mod value directly as constant
Co-authored-by: Ondřej Čertík <[email protected]>
  • Loading branch information
ubaidsk and certik authored Apr 14, 2023
commit 1a99f9aaeca7cf03467062e57883d885aa54b9e8
3 changes: 1 addition & 2 deletions src/libasr/codegen/x86_assembler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ void X86Assembler::save_binary64(const std::string &filename) {
out.write((const char*) m_code.p, m_code.size());
}
#ifdef LFORTRAN_LINUX
std::string mode = "0755";
int mod = strtol(mode.c_str(), 0, 8);
int mod = 0755;
if (chmod(filename.c_str(),mod) < 0) {
throw AssemblerError("chmod failed");
}
Expand Down