diff options
| author | Colin Davidson <colrdavidson@gmail.com> | 2022-03-14 05:23:48 -0700 |
|---|---|---|
| committer | Colin Davidson <colrdavidson@gmail.com> | 2022-03-14 05:23:48 -0700 |
| commit | 860583378193efead071332b28be6ac426a99ece (patch) | |
| tree | c3d7dc1f11d588801471c64cb6b02b84cb58981e /build_odin.sh | |
| parent | 4474144c24d30cce896f4a8a562ad14cf5be96b6 (diff) | |
core out Makefile, add freebsd building
Diffstat (limited to 'build_odin.sh')
| -rwxr-xr-x | build_odin.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build_odin.sh b/build_odin.sh index a323782a1..dd2725f5d 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -41,6 +41,13 @@ config_darwin() { LDFLAGS="$LDFLAGS -lLLVM-C" } +config_freebsd() { + LLVM_CONFIG=/usr/local/bin/llvm-config11 + + CFLAGS="$CFLAGS $($LLVM_CONFIG --cxxflags --ldflags)" + LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs)" +} + config_openbsd() { LLVM_CONFIG=/usr/local/bin/llvm-config @@ -108,6 +115,9 @@ Darwin) OpenBSD) config_openbsd ;; +FreeBSD) + config_freebsd + ;; *) panic "Platform unsupported!" esac |