MoonchildProductions#1251 - Part 9: Look for hypot in the math library (libm).

https://bugzilla.mozilla.org/show_bug.cgi?id=1351309
https://bugzilla.mozilla.org/show_bug.cgi?id=1309157

I assess this change to be low-risk for the following reasons:

1. It has been in Firefox since version 55 without issues.

2. It's nearly identical to the fix for bug 1309157 which is already in our tree, so that one would be causing problems if this one were going to.

3. Linux, Windows, and BSD are known to have a hypot function in their math libraries.

4. Even if it does break something, it should only break a test and not critical functionality.
This commit is contained in:
athenian200 2019-10-01 23:39:11 -05:00 committed by Roy Tam
commit 7de03715a5

View file

@ -27,7 +27,7 @@ function test() {
let lib;
try {
lib = ctypes.open(ctypes.libraryName("c"));
lib = ctypes.open(ctypes.libraryName("m"));
} catch (e) {
}
if (!lib)