Make windows build less dependent on cygwin-wrapper

RESOLVED WONTFIX

Status

--
enhancement
RESOLVED WONTFIX
14 years ago
7 months ago

People

(Reporter: neil, Unassigned)

Tracking

Trunk
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
My tests may be a bit limited because they all used the mingw compiler, so I was
able to build under $HOME and such, which is not normally possible on Windows.

I patched the cygwin-wrapper to compare the input and output and log the
differences to a file. I added an ifndef GNU_CC to rules.mk to stop it
converting _VPATH_SRCS to an absolute path. I built Mozilla and noticed that
only a few of the calls used absolute paths (mostly NSPR's path to dist).

I then patched configure to remove all the lines setting CYGWIN_WRAPPER and
created an objdir build in a new tree by using mk_add_options
MOZ_OBJDIR=../objdir --with-srcdir=../mozilla which ran to completion.

Updated

14 years ago
Blocks: 207521
(Reporter)

Comment 1

14 years ago
The following changes make windows builds less dependent on the cygwin wrapper:
* In mozilla/client.mk, remove the forced absolute path to configure
This change makes srcdir builds relative by default.
* In mozilla/configure.in, remove the references to the cygwin wrapper
This change applies to mingw, srcdir or relative --enable-srcdir builds.
* In mozilla/config/config.mk, remove the references to the cygwin wrapper
* In mozilla/config/rules.mk, remove the forced absolute path to _VPATH_SRCS
This change applies to srcdir or relative --enable-srcdir builds.
I use a mingw objdir build with relative srcdir and a msvc srcdir build.

Comment 2

12 years ago
The absolute path is required to have MSVC debug info.  See bug 141834.  

If you don't want to use the cygwin-wrapper, use msys instead of cygwin.


Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → WONTFIX

Updated

7 months ago
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.