Changeset 245707 in webkit
- Timestamp:
- May 23, 2019 1:15:55 PM (5 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r245698 r245707 1 2019-05-23 Stephan Szabo <stephan.szabo@sony.com> 2 3 [Win][CMake] Pass architecture to cmake via -A for both x64 and Win32 4 https://bugs.webkit.org/show_bug.cgi?id=198098 5 6 Reviewed by Don Olmstead. 7 8 With current CMake and Visual Studio 2019, the default 9 architecture will match the host, so we should make sure 10 to explicitly mention the architecture we want for 32-bit 11 builds as well for cases where we are on x64 and not in an 12 x64_x32 cross-build vcvars environment. 13 14 * Scripts/webkitdirs.pm: 15 (getVisualStudioToolset): Get toolset name for cmake/msbuild 16 (getMSBuildPlatformArgument): Update to use getVisualStudioToolset 17 (getCMakeWindowsToolsetArgument): Get -A argument for cmake 18 based on toolset 19 (generateBuildSystemFromCMakeProject): Remove explicit -A x64 20 in 64-bit mode in favor of new getCMakeWindowsToolsetArgument. 21 1 22 2019-05-23 Youenn Fablet <youenn@apple.com> 2 23 -
trunk/Tools/Scripts/webkitdirs.pm
r245127 r245707 1874 1874 } 1875 1875 1876 sub get MSBuildPlatformArgument()1876 sub getVisualStudioToolset() 1877 1877 { 1878 1878 if (isPlayStation()) { 1879 1879 return ""; 1880 1880 } elsif (isWin64()) { 1881 return " /p:Platform=x64";1881 return "x64"; 1882 1882 } else { 1883 return "/p:Platform=Win32"; 1884 } 1883 return "Win32"; 1884 } 1885 } 1886 1887 sub getMSBuildPlatformArgument() 1888 { 1889 my $toolset = getVisualStudioToolset(); 1890 if (defined($toolset) && length($toolset)) { 1891 return "/p:Platform=$toolset"; 1892 } 1893 return ""; 1894 } 1895 1896 sub getCMakeWindowsToolsetArgument() 1897 { 1898 my $toolset = getVisualStudioToolset(); 1899 if (defined($toolset) && length($toolset)) { 1900 return "-A $toolset"; 1901 } 1902 return ""; 1885 1903 } 1886 1904 … … 2198 2216 push @args, "-DUSE_THIN_ARCHIVES=OFF" if isPlayStation(); 2199 2217 } else { 2200 if (isAnyWindows() && isWin64()) {2201 push @args, '-A x64';2218 if (isAnyWindows()) { 2219 push @args, getCMakeWindowsToolsetArgument(); 2202 2220 } 2203 2221 if ((isAnyWindows() || isPlayStation()) && defined $ENV{VisualStudioVersion}) {
Note: See TracChangeset
for help on using the changeset viewer.