WebKit Bugzilla
Attachment 370408 Details for
Bug 198098
: [Win][CMake] Pass architecture to cmake via -A for both x64 and Win32
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
198098.1.diff (text/plain), 2.39 KB, created by
Stephan Szabo
on 2019-05-22 09:49:06 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Stephan Szabo
Created:
2019-05-22 09:49:06 PDT
Size:
2.39 KB
patch
obsolete
>diff --git a/Tools/ChangeLog b/Tools/ChangeLog >index f44dc9ee894..5d7ee2c84aa 100644 >--- a/Tools/ChangeLog >+++ b/Tools/ChangeLog >@@ -1,3 +1,18 @@ >+2019-05-22 Stephan Szabo <stephan.szabo@sony.com> >+ >+ [Win][CMake] Pass architecture to cmake via -A for both x64 and Win32 >+ https://bugs.webkit.org/show_bug.cgi?id=198098 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ * Scripts/webkitdirs.pm: >+ (getVisualStudioToolset): Get toolset name for cmake/msbuild >+ (getMSBuildPlatformArgument): Update to use getVisualStudioToolset >+ (getCMakeWindowsToolsetArgument): Get -A argument for cmake >+ based on toolset >+ (generateBuildSystemFromCMakeProject): Remove explicit -A x64 >+ in 64-bit mode in favor of new getCMakeWindowsToolsetArgument. >+ > 2019-05-21 Chris Dumez <cdumez@apple.com> > > [PSON] Assertion hit when navigating back after a process swap forced by the client >diff --git a/Tools/Scripts/webkitdirs.pm b/Tools/Scripts/webkitdirs.pm >index fb0ef50104f..67cc17a6b11 100755 >--- a/Tools/Scripts/webkitdirs.pm >+++ b/Tools/Scripts/webkitdirs.pm >@@ -1873,15 +1873,33 @@ sub buildXCodeProject($$@) > return system "xcodebuild", "-project", "$project.xcodeproj", @extraOptions; > } > >-sub getMSBuildPlatformArgument() >+sub getVisualStudioToolset() > { > if (isPlayStation()) { > return ""; > } elsif (isWin64()) { >- return "/p:Platform=x64"; >+ return "x64"; > } else { >- return "/p:Platform=Win32"; >+ return "Win32"; >+ } >+} >+ >+sub getMSBuildPlatformArgument() >+{ >+ my $toolset = getVisualStudioToolset(); >+ if (defined($toolset) && length($toolset)) { >+ return "/p:Platform=$toolset"; > } >+ return ""; >+} >+ >+sub getCMakeWindowsToolsetArgument() >+{ >+ my $toolset = getVisualStudioToolset(); >+ if (defined($toolset) && length($toolset)) { >+ return "-A $toolset"; >+ } >+ return ""; > } > > sub buildVisualStudioProject >@@ -2197,8 +2215,8 @@ sub generateBuildSystemFromCMakeProject > } > push @args, "-DUSE_THIN_ARCHIVES=OFF" if isPlayStation(); > } else { >- if (isAnyWindows() && isWin64()) { >- push @args, '-A x64'; >+ if (isAnyWindows()) { >+ push @args, getCMakeWindowsToolsetArgument(); > } > if ((isAnyWindows() || isPlayStation()) && defined $ENV{VisualStudioVersion}) { > my $var = int($ENV{VisualStudioVersion});
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
ews-watchlist
:
commit-queue-
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 198098
:
370408
|
370429
|
370458
|
370507