зеркало из https://github.com/github/ruby.git
Show mkmf.log when failed
This commit is contained in:
Родитель
21a9d7664c
Коммит
1db8586279
|
@ -5,9 +5,14 @@
|
|||
#
|
||||
def check_append_cflags(flag, msg = nil)
|
||||
msg ||= "flag #{flag} is not acceptable"
|
||||
!$CFLAGS.include?(flag) or raise("flag #{flag} already present in $CFLAGS")
|
||||
if $CFLAGS.include?(flag)
|
||||
raise("flag #{flag} already present in $CFLAGS")
|
||||
end
|
||||
append_cflags(flag)
|
||||
$CFLAGS.include?(flag) or raise(msg)
|
||||
unless $CFLAGS.include?(flag)
|
||||
system("cat mkmf.log")
|
||||
raise(msg)
|
||||
end
|
||||
end
|
||||
|
||||
if %w[gcc clang].include?(RbConfig::CONFIG['CC'])
|
||||
|
|
Загрузка…
Ссылка в новой задаче