mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 20:17:48 +00:00
Merge pull request #3570 from jasonKercher/linux-arm32
Get the compiler to build and work on arm32 Linux
This commit is contained in:
@@ -978,7 +978,7 @@ gb_global TargetMetrics target_linux_arm32 = {
|
||||
TargetOs_linux,
|
||||
TargetArch_arm32,
|
||||
4, 4, 4, 8,
|
||||
str_lit("arm-linux-gnu"),
|
||||
str_lit("arm-unknown-linux-gnueabihf"),
|
||||
};
|
||||
|
||||
gb_global TargetMetrics target_darwin_amd64 = {
|
||||
@@ -1906,6 +1906,16 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta
|
||||
#else
|
||||
metrics = &target_linux_amd64;
|
||||
#endif
|
||||
#elif defined(GB_CPU_ARM)
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
#error "Build Error: Unsupported architecture"
|
||||
#elif defined(GB_SYSTEM_OSX)
|
||||
#error "Build Error: Unsupported architecture"
|
||||
#elif defined(GB_SYSTEM_FREEBSD)
|
||||
#error "Build Error: Unsupported architecture"
|
||||
#else
|
||||
metrics = &target_linux_arm32;
|
||||
#endif
|
||||
#else
|
||||
#if defined(GB_SYSTEM_WINDOWS)
|
||||
metrics = &target_windows_i386;
|
||||
|
||||
Reference in New Issue
Block a user