Bug 1413593 - Add win32 cross compilation config for geckodriver. r?jgraham draft
authorAndreas Tolfsen <ato@sny.no>
Wed, 01 Nov 2017 16:49:55 +0000
changeset 690110 fc1ec6ef168ee4a3a4510970e0bea12d99f19841
parent 690034 cd7217cf05a2332a8fd7b498767a07b2c31ea657
child 738492 45e3e0e93f8301926f58cf5d986d8f9aeb81515b
push id87215
push userbmo:ato@sny.no
push dateWed, 01 Nov 2017 16:52:31 +0000
reviewersjgraham
bugs1413593
milestone58.0a1
Bug 1413593 - Add win32 cross compilation config for geckodriver. r?jgraham When cross-compiling geckodriver for i686-pc-windows-gnu from Linux x86-64, this custom cargo configuration is needed. It specifies the linker to use as well as a rustc flag for disabling backtraces on panic, as far as I gather. Neither of these options are necessary, of course, when we start releasing geckodriver from Taskcluster, because we will then not rely on cross-compilation. MozReview-Commit-ID: 6q7wIBNrCHB
testing/geckodriver/.cargo/config
new file mode 100644
--- /dev/null
+++ b/testing/geckodriver/.cargo/config
@@ -0,0 +1,3 @@
+[target.i686-pc-windows-gnu]
+linker = "i686-w64-mingw32-gcc"
+rustflags = "-C panic=abort"