Closed nox closed 4 years ago
Even better, this does not build on Windows with --features debugmozjs
.
Error seems to be https://github.com/rust-lang/libc/pull/1433
Will write a fix first thing in the morning if you didn't already by then. Thank you for your help, really.
[mozjs 0.13.0] running: "clang-cl.exe" "-nologo" "-MD" "-Z7" "-Brepro" "-m64" "-I" "C:\\projects\\rust-mozjs\\target\\x86_64-pc-windows-msvc\\debug\\build\\mozjs_sys-348968a14b8060be\\out\\build\\dist\\include" "-W4" "-MDd" "-Od" "-FIC:\\projects\\rust-mozjs\\target\\x86_64-pc-windows-msvc\\debug\\build\\mozjs_sys-348968a14b8060be\\out\\build\\js\\src\\js-confdefs.h" "-Zi" "-GR-" "-Wno-c++0x-extensions" "-Wno-return-type-c-linkage" "-Wno-invalid-offsetof" "-Wno-unused-parameter" "-DDEBUG=" "-D_DEBUG=" "-DWIN32=" "-FoC:\\projects\\rust-mozjs\\target\\x86_64-pc-windows-msvc\\debug\\build\\mozjs-83b0ce056021e4ff\\out\\src/jsglue.o" "-c" "src/jsglue.cpp"
Now to find where that -MDd
is from…
Keep in mind that https://github.com/servo/mozjs/commit/2b97c2dc648c84164a6a12418dce0e9cd3b62038 exists, if that helps or hinders at all.
Thanks for the pointer. The solution AFAIK was to set MOZ_NO_DEBUG_RTL
in mozjs_sys
and remove -MDd
here.
I suspect some sort of ABI issue on Windows with GetPropertyKeys
.
I fixed the failing enumerate
test, this was indeed an ABI issue with MSVC (and clang-cl it seems).
AFAICT, we do not include js-config.h
when building MFBT, we use js-confdefs.h
, which seems to only include configure variables from the old-configure
script, not the fancy Python ones we define ourselves.
@bors-servo r=asajeffrey
:pushpin: Commit a09ebb1 has been approved by asajeffrey
:hourglass: Testing commit a09ebb19ee0f1b7d20716b60b19c590fa28a9e1b with merge 98ebda01cde7589bc4f08f289c4e366a58d570a1...
:sunny: Test successful - checks-travis, status-appveyor Approved by: asajeffrey Pushing 98ebda01cde7589bc4f08f289c4e366a58d570a1 to master...
The
enumerate
test seems to fail on x86_64 on Windows.