diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5063a44b..479bbc14 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -52,6 +52,18 @@ # else # define DEFAULT_TARGET_NAME "i586-windows-gnu" # endif +#elif defined(__OpenBSD__) +# if defined(__amd64__) +# define DEFAULT_TARGET_NAME "x86_64-unknown-openbsd" +# elif defined(__aarch64__) +# define DEFAULT_TARGET_NAME "arm64-unknown-openbsd" +# elif defined(__arm__) +# define DEFAULT_TARGET_NAME "arm-unknown-openbsd" +# elif defined(__i386__) +# define DEFAULT_TARGET_NAME "i686-unknown-openbsd" +# else +# error "Unable to detect a suitable default target (OpenBSD)" +# endif #else # error "Unable to detect a suitable default target" #endif |