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)

x86
Windows XP
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bent.mozilla, Assigned: bent.mozilla)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch Patch (obsolete) — 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 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-
Attached patch Patch (obsolete) — Splinter Review
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)
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
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)
Attachment #253961 - Flags: review?(ted.mielczarek) → review?(benjamin)
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-
Attached patch PatchSplinter Review
Ok, introduces the MOZBUILD_USE_SDK variable.
Attachment #253961 - Attachment is obsolete: true
Attachment #257721 - Flags: review?(benjamin)
Comment on attachment 257721 [details] [diff] [review] Patch Please land this ASAP.
Attachment #257721 - Flags: review?(benjamin) → review+
Fixed on trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: nobody → bent.mozilla
Status: REOPENED → NEW
Status: NEW → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Mass re-assign of MozillaBuild bugs into mozilla.org:MozillaBuild
Component: Build Config → MozillaBuild
Product: Core → mozilla.org
Version: Trunk → other
QA Contact: build-config → mozillabuild
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: