diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2018-04-11 11:25:33 +0100 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-04-11 18:24:19 +0200 |
commit | 4b1a42c703eaab3e15320e3a1ef5340cdc8ab449 (patch) | |
tree | 0970ca7bccc382baca08506c63d8fc05b5a0131d | |
parent | 6c3902ac41113e6e4a87e0a7e9cc9f96062402c4 (diff) | |
download | openttd-4b1a42c703eaab3e15320e3a1ef5340cdc8ab449.tar.xz |
Codechange: Remove outdated assumption about FreeBSD's C compiler
-rw-r--r-- | config.lib | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/config.lib b/config.lib index bc2224f68..1afd0e087 100644 --- a/config.lib +++ b/config.lib @@ -2076,26 +2076,13 @@ check_compiler() { } check_build() { - if [ "$os" = "FREEBSD" ]; then - # FreeBSD's C compiler does not support dump machine. - # However, removing C support is not possible because PSP must be linked with the C compiler. - check_compiler "build system type" "cc_build" "$build" "$cc_build" "$CXX" "g++" "c++" "0" "-dumpmachine" - else - check_compiler "build system type" "cc_build" "$build" "$cc_build" "$CC" "gcc" "cc" "0" "-dumpmachine" - fi + check_compiler "build system type" "cc_build" "$build" "$cc_build" "$CC" "gcc" "cc" "0" "-dumpmachine" } check_host() { # By default the host is the build if [ -z "$host" ]; then host="$build"; fi - - if [ "$os" = "FREEBSD" ]; then - # FreeBSD's C compiler does not support dump machine. - # However, removing C support is not possible because PSP must be linked with the C compiler. - check_compiler "host system type" "cc_host" "$host" "$cc_host" "$CXX" "g++" "c++" "0" "-dumpmachine" - else - check_compiler "host system type" "cc_host" "$host" "$cc_host" "$CC" "gcc" "cc" "0" "-dumpmachine" - fi + check_compiler "host system type" "cc_host" "$host" "$cc_host" "$CC" "gcc" "cc" "0" "-dumpmachine" } check_cxx_build() { |