Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support -c flag for generating object files #8

Merged
merged 4 commits into from
Dec 13, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: Use outfile when ArgC is used with LLVM backend
  • Loading branch information
Shaikh-Ubaid committed Dec 12, 2023
commit baf35bb543619a17006fb4f5c00411ec80bd7d2b
2 changes: 1 addition & 1 deletion src/bin/lc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ int main(int argc, const char **argv) {
tmp_file = outfile + "__generated__.f90";
status = compile_to_fortran(al, infile, tmp_file, (LCompilers::ASR::TranslationUnit_t*)tu);
} else if (backend == Backend::llvm) {
tmp_file = outfile + "__generated__.o";
tmp_file = ArgC ? outfile : (outfile + "__generated__.o");
status = compile_to_binary_object(al, infile, tmp_file, (LCompilers::ASR::TranslationUnit_t*)tu);
}

Expand Down