diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 4b6c52e3f5..a8f3143dec 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -811,6 +811,7 @@ SRC # Returns true when the executable exits successfully, false when it fails, # or nil when preprocessing, compilation or link fails. def try_run(src, opt = "", &b) + raise "cannot run test program while cross compiling" if CROSS_COMPILING if try_link0(src, opt, &b) xsystem("./conftest") else |