Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debugmozjs build is not supported on Windows #189

Open
saschanaz opened this issue Jun 30, 2019 · 4 comments
Open

debugmozjs build is not supported on Windows #189

saschanaz opened this issue Jun 30, 2019 · 4 comments

Comments

@saschanaz
Copy link
Contributor

saschanaz commented Jun 30, 2019

The error says Rustc doesn't support MSVC debug runtime.

AFAIK gecko now supports Windows clang build, can we use it to workaround this?

@jdm
Copy link
Member

jdm commented Jul 1, 2019

Unfortunately this is a rustc limitation: rust-lang/rust#39016

@jdm
Copy link
Member

jdm commented Jul 10, 2019

Tried to fix this with #190 and CI looked like it worked, but that was a lie:

c:/PROGRA~1/LLVM/bin/clang-cl.exe -FoCompression.obj -c  -DDEBUG=1 -DIMPL_MFBT -DLZ4LIB_VISIBILITY= -Ic:/projects/mozjs/mozjs/mfbt -Ic:/projects/mozjs/target/debug/build/mozjs_sys-574d4207fccb2ff7/out/mfbt -Ic:/projects/mozjs/mozjs/mfbt/double-conversion -Ic:/projects/mozjs/target/debug/build/mozjs_sys-574d4207fccb2ff7/out/dist/include -MDd -FI c:/projects/mozjs/target/debug/build/mozjs_sys-574d4207fccb2ff7/out/js/src/js-confdefs.h -DMOZILLA_CLIENT -Qunused-arguments -guard:cf -Qunused-arguments -MD -TP -nologo -D_CRT_SECURE_NO_WARNINGS -Zc:sizedDealloc- -D_HAS_EXCEPTIONS=0 -guard:cf -W3 -Gy -Zc:inline -Gw -Wno-inline-new-delete -Wno-invalid-offsetof -Wno-microsoft-enum-value -Wno-microsoft-include -Wno-unknown-pragmas -Wno-ignored-pragmas -Wno-deprecated-declarations -Wno-invalid-noreturn -Wno-inconsistent-missing-override -Wno-implicit-exception-spec-mismatch -Wno-unused-local-typedef -Wno-ignored-attributes -Wno-used-but-marked-unused -GR- -Z7 -Oy-  -Xclang -MP -Xclang -dependency-file -Xclang .deps/Compression.obj.pp -Xclang -MT -Xclang Compression.obj   c:/projects/mozjs/mozjs/mfbt/Compression.cpp

The build still contains -MDd and -MD simultaneously.

@jdm
Copy link
Member

jdm commented Jul 10, 2019

I'm trying a new fix that looks promising:

@asajeffrey
Copy link
Member

Oh that's annoying.

@nox nox changed the title debugmozjs build is not supported on WIndows debugmozjs build is not supported on Windows Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants