Add emit command-line option (#580)

Add emit command-line option
This commit is contained in:
Marc Tiehuis
2017-11-04 02:09:33 +13:00
committed by Andrew Kelley
parent a31b23c46b
commit 795703a39c
8 changed files with 126 additions and 25 deletions

View File

@@ -555,6 +555,14 @@ const char *target_o_file_ext(ZigTarget *target) {
}
}
const char *target_asm_file_ext(ZigTarget *target) {
return ".s";
}
const char *target_llvm_ir_file_ext(ZigTarget *target) {
return ".ll";
}
const char *target_exe_file_ext(ZigTarget *target) {
if (target->os == ZigLLVM_Win32) {
return ".exe";