pgj commented on code in PR #4380:
URL: https://github.com/apache/couchdb/pull/4380#discussion_r1083141078
##########
configure.ps1:
##########
@@ -103,6 +103,22 @@ If ($Test) {
exit 0
}
+# Use the MSVC linker to determine if the respective SpiderMonkey library
+# is available on the linker path. This heuristic is taken from
+# src/couch/rebar.config.script, please keep them in sync.
+If ($SpiderMonkeyVersion -eq "1.8.5") {
+ $SpiderMonkeyLib = "mozjs185-1.0.lib"
+}
+else {
+ $SpiderMonkeyLib = "mozjs-$SpiderMonkeyVersion.lib"
+}
+
+&link $SpiderMonkeyLib /SUBSYSTEM:CONSOLE /NOENTRY /DLL /OUT:NUL *> $null
Review Comment:
Yes, `c:\relax\couchdb-glazier\bin\shell.ps1` needs to be invoked before,
otherwise `link` will correspond to GNU `ln(1)`. But this needs to be done
anyway, because e.g. `escript` will not work either.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]