Remove require_gcc implementation

This was only used in Ruby versions < 1.9.3, which are now EOL.

This also removes a 11-years old workaround for building Ruby 2.0 with clang.
06d7994bcf
This commit is contained in:
Mislav Marohnić 2023-08-03 14:48:14 +02:00
parent 9862a16796
commit a4c6878ff5
No known key found for this signature in database
86 changed files with 3 additions and 248 deletions

View file

@ -7,58 +7,6 @@ export -n CFLAGS
export -n CC
export -n RUBY_CONFIGURE_OPTS
@test "require_gcc on OS X 10.9" {
stub_repeated uname '-s : echo Darwin'
stub sw_vers '-productVersion : echo 10.9.5'
stub_repeated gcc '--version : echo 4.2.1'
run_inline_definition <<DEF
require_gcc
echo CC=\$CC
echo MACOSX_DEPLOYMENT_TARGET=\${MACOSX_DEPLOYMENT_TARGET-no}
DEF
assert_success
assert_output <<OUT
CC=${TMP}/bin/gcc
MACOSX_DEPLOYMENT_TARGET=no
OUT
unstub uname
unstub sw_vers
unstub gcc
}
@test "require_gcc on OS X 10.10" {
stub_repeated uname '-s : echo Darwin'
stub sw_vers '-productVersion : echo 10.10'
stub_repeated gcc '--version : echo 4.2.1'
run_inline_definition <<DEF
require_gcc
echo CC=\$CC
echo MACOSX_DEPLOYMENT_TARGET=\${MACOSX_DEPLOYMENT_TARGET-no}
DEF
assert_success
assert_output <<OUT
CC=${TMP}/bin/gcc
MACOSX_DEPLOYMENT_TARGET=10.9
OUT
unstub uname
unstub sw_vers
unstub gcc
}
@test "require_gcc silences warnings" {
stub gcc '--version : echo warning >&2; echo 4.2.1' '--version : echo warning >&2; echo 4.2.1'
run_inline_definition <<DEF
require_gcc
echo \$CC
DEF
assert_success "${TMP}/bin/gcc"
}
@test "CC=clang by default on OS X 10.10" {
mkdir -p "$INSTALL_ROOT"
cd "$INSTALL_ROOT"