Add a new "target" command line option to set the target without the need for a full target triple. Add debug command line options. Fix bug with coerce for x64 SysV ABI.

This commit is contained in:
Christoffer Lerno
2020-11-23 23:23:15 +01:00
committed by Christoffer Lerno
parent 1057432913
commit 162bb9dac8
8 changed files with 133 additions and 34 deletions

View File

@@ -14,7 +14,7 @@ void gencontext_begin_module(GenContext *context)
LLVMSetModuleDataLayout(context->module, target_data_layout());
LLVMSetSourceFileName(context->module, full_path, strlen(context->ast_context->file->full_path));
LLVMSetTarget(context->module, build_options.target);
LLVMSetTarget(context->module, build_target.target_triple);
if (build_options.debug_info != DEBUG_INFO_NONE)
{
const char *filename = context->ast_context->file->name;