Closed
Bug 369241
Opened 18 years ago
Closed 18 years ago
MozillaBuild should prepend the PlatformSDK's paths if available for vc71
Categories
(Firefox Build System :: MozillaBuild, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
Details
Attachments
(1 file, 2 obsolete files)
1.47 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
Calling the Platform SDK's 'SetEnv.cmd' simply prepends some SDK paths and then calls 'vcvars.bat' in the appropriate place. We use the Platform SDK and need those additional paths in order to compile successfully. I don't know if this sort of thing is needed for VC6 or VC8, but for VC7 I'd like to propose the following patch.
Oh, and by the way, the line endings in this file are screwed up. The patch makes them all windows line endings. The basic change is this:
rem Prepend MSVC paths
+if "%SDKDIR%"=="" (
call "%VC71DIR%\Bin\vcvars32.bat"
+)
+else (
+ call "%SDKDIR%\SetEnv.cmd"
+)
Attachment #253924 -
Flags: review?(benjamin)
Comment 1•18 years ago
|
||
Comment on attachment 253924 [details] [diff] [review]
Patch
The comment in the VC6 makefile is telling: the SDK is not determinite about *which* compiler will get chosen.
I don't really understand why you need the SDK (it shouldn't be necessary for compiling Mozilla that I know of), but if it is, instead of using SetEnv.cmd, please use the technique in start-msvc6.bat
Attachment #253924 -
Flags: review?(benjamin) → review-
Assignee | ||
Comment 2•18 years ago
|
||
Ok, here we go. I never read the vc8 script before and totally missed that comment.
Attachment #253924 -
Attachment is obsolete: true
Attachment #253961 -
Flags: review?(benjamin)
Assignee | ||
Updated•18 years ago
|
Summary: MozillaBuild should use the PlatformSDK's SetEnv.cmd if available (rather than vcvars.bat) → MozillaBuild should prepend the PlatformSDK's paths if available for vc71
Assignee | ||
Comment 3•18 years ago
|
||
Comment on attachment 253961 [details] [diff] [review]
Patch
Switching review to Ted due to bsmdeberg's leave.
Attachment #253961 -
Flags: review?(benjamin) → review?(ted.mielczarek)
Assignee | ||
Updated•18 years ago
|
Attachment #253961 -
Flags: review?(ted.mielczarek) → review?(benjamin)
Comment 4•18 years ago
|
||
Comment on attachment 253961 [details] [diff] [review]
Patch
I don't think we want to include the SDK by default except when necessary (MSVC8 express). So either keep this as a private change for Songbird, or...
We can add the SDK if an environment variable like MOZ_USE_SDK is set. I would take something like that.
Attachment #253961 -
Flags: review?(benjamin) → review-
Assignee | ||
Comment 5•18 years ago
|
||
Ok, introduces the MOZBUILD_USE_SDK variable.
Attachment #253961 -
Attachment is obsolete: true
Attachment #257721 -
Flags: review?(benjamin)
Comment 6•18 years ago
|
||
Comment on attachment 257721 [details] [diff] [review]
Patch
Please land this ASAP.
Attachment #257721 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 7•18 years ago
|
||
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•18 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•18 years ago
|
Assignee: nobody → bent.mozilla
Status: REOPENED → NEW
Assignee | ||
Updated•18 years ago
|
Status: NEW → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
Comment 8•17 years ago
|
||
Mass re-assign of MozillaBuild bugs into mozilla.org:MozillaBuild
Component: Build Config → MozillaBuild
Product: Core → mozilla.org
Version: Trunk → other
Updated•17 years ago
|
QA Contact: build-config → mozillabuild
Updated•2 years ago
|
Product: mozilla.org → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•