mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 09:54:45 +00:00
Remove use_llvm_api related checks and other related things
This commit is contained in:
@@ -204,8 +204,6 @@ struct BuildContext {
|
||||
bool ignore_warnings;
|
||||
bool warnings_as_errors;
|
||||
|
||||
bool use_llvm_api;
|
||||
|
||||
bool use_subsystem_windows;
|
||||
bool ignore_microsoft_magic;
|
||||
bool linker_map_file;
|
||||
@@ -782,8 +780,6 @@ void init_build_context(TargetMetrics *cross_target) {
|
||||
bc->link_flags = str_lit(" ");
|
||||
bc->opt_flags = str_lit(" ");
|
||||
|
||||
bc->use_llvm_api = true;
|
||||
|
||||
|
||||
gbString llc_flags = gb_string_make_reserve(heap_allocator(), 64);
|
||||
if (bc->ODIN_DEBUG) {
|
||||
@@ -841,10 +837,6 @@ void init_build_context(TargetMetrics *cross_target) {
|
||||
bc->link_flags = str_lit("-arch arm64 ");
|
||||
break;
|
||||
}
|
||||
if ((bc->command_kind & Command__does_build) != 0 && !bc->use_llvm_api) {
|
||||
gb_printf_err("The arm64 architecture is only supported with -llvm-api\n");;
|
||||
gb_exit(1);
|
||||
}
|
||||
|
||||
} else if (bc->metrics.arch == TargetArch_wasm32) {
|
||||
bc->link_flags = str_lit("--no-entry --export-table --export-all --allow-undefined ");
|
||||
|
||||
Reference in New Issue
Block a user