mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-07 11:04:17 +00:00
few llvm 20 changes
This commit is contained in:
@@ -109,6 +109,12 @@ gb_global String target_arch_names[TargetArch_COUNT] = {
|
||||
str_lit("riscv64"),
|
||||
};
|
||||
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
#include <llvm-c/Config/llvm-config.h>
|
||||
#else
|
||||
#include <llvm/Config/llvm-config.h>
|
||||
#endif
|
||||
|
||||
#include "build_settings_microarch.cpp"
|
||||
|
||||
gb_global String target_endian_names[TargetEndian_COUNT] = {
|
||||
@@ -544,12 +550,6 @@ gb_internal isize MAX_ERROR_COLLECTOR_COUNT(void) {
|
||||
return build_context.max_error_count;
|
||||
}
|
||||
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
#include <llvm-c/Config/llvm-config.h>
|
||||
#else
|
||||
#include <llvm/Config/llvm-config.h>
|
||||
#endif
|
||||
|
||||
// NOTE: AMD64 targets had their alignment on 128 bit ints bumped from 8 to 16 (undocumented of course).
|
||||
#if LLVM_VERSION_MAJOR >= 18
|
||||
#define AMD64_MAX_ALIGNMENT 16
|
||||
|
||||
Reference in New Issue
Block a user