I am trying to embed Spidermonkey into a Win32 application, using the instructions here.
I was eventually able to get it to compile, and js.exe appeared to work fine. However, now I need to compile it as a 32 bit DLL.
I changed my mozconfig file to specify x86_64-pc-windows-msvc
as the target
and the host
, but when I run ./mach build, I just get this error info:
$ ./mach build
Adding configure options from C:\mozilla-source\mozilla-unified\mozconfig
--enable-application=js
--prefix=c:/mozilla-source/mozilla-unified
--disable-jemalloc
--disable-debug-symbols
--enable-optimize
--enable-strip
--enable-install-strip
--target=x86_64-pc-windows-msvc
--host=x86_64-pc-windows-msvc
checking for host system type...
Executing: `sh C:/mozilla-source/mozilla-unified/build/moz.configure/../autoconf/config.sub x86_64-pc-windows-msvc`
The command returned non-zero exit status 1.
Its error output was:
| Invalid configuration `x86_64-pc-windows-msvc': OS `msvc' not recognized
Command `sh C:/mozilla-source/mozilla-unified/build/moz.configure/../autoconf/config.sub x86_64-pc-windows-msvc` failed with exit status 1.
I apologize for being such a noob and not really understanding this build process. It’s quite a leap from what I’m used to, when staying only within Visual Studio for development!
I found this page regarding Tiers and perhaps the issue is that I’ve probably got the latest mozilla source and need to figure out how to downgrade to something pre-Firefox 63?
MSVC is required for me since my application that will embed Spidermonkey is compiled with MSVC. Any suggestions would be greatly appreciated here!