Skip to content

Commit df9f0fe

Browse files
committed
It's an error if --with-sanitize given but none could be activated
1 parent ec48fe6 commit df9f0fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mysql2/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def asplode(lib)
129129
enabled_sanitizers = %w(address cfi integer memory thread undefined).select do |s|
130130
try_link('int main() {return 0;}', "-Werror -fsanitize=#{s}")
131131
end
132+
abort "-----\nCould not enable any sanitizers!\n-----" if enabled_sanitizers.empty?
132133
when String
133134
# Figure out which sanitizers are supported
134135
enabled_sanitizers, disabled_sanitizers = sanitizers.split(',').partition do |s|

0 commit comments

Comments
 (0)