mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
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:
committed by
Christoffer Lerno
parent
1057432913
commit
162bb9dac8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user