Summary: | [Mac] run-safari doesn’t run Safari in 32-bit mode even if WebKit configuration is set to 32-bit | ||
---|---|---|---|
Product: | WebKit | Reporter: | Csaba Osztrogonác <ossy> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | ap, bburg, darin, mark.lam, oliver |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Csaba Osztrogonác
2014-05-13 03:32:32 PDT
I don’t know if Safari has a 32-bit binary as well as a 64-bit binary installed on the copy of OS X you have; it probably does. It won’t be included just to help us out in WebKit development, but it might well be present. The problem you are having here is that you expected run-safari to run Safari in 32-bit mode since WebKit was configured to build 32-bit WebKit. That’s something someone might add to run-safari some day, but I don’t think anyone even suggested it before. A way to get Safari to open in 32-bit mode is to check the "Open in 32-bit mode" check box in the Finder Info dialog for Safari. You could do that. There’s no need for you to block your work on this improvement to run-safari. One way to test what architectures are supported by Safari is with file command:
file /Applications/Safari.app/Contents/MacOS/SafariForWebKitDevelopment
> Is it possible to run 32 bit WebKit on 64 bit OS X?
I expect that it's possible with MiniBrowser, although I haven't tried that. There is no special 32-bit version of OS X.
This should work fine nowadays, as we usually route through arch(1) and stick in the current architecture: sub runMacWebKitApp($;$) { my ($appPath, $useOpenCommand) = @_; my $productDir = productDir(); print "Starting @{[basename($appPath)]} with DYLD_FRAMEWORK_PATH set to point to built WebKit in $productDir.\n"; local %ENV = %ENV; setupMacWebKitEnvironment($productDir); if (defined($useOpenCommand) && $useOpenCommand == USE_OPEN_COMMAND) { return system("open", "-W", "-a", $appPath, "--args", argumentsForRunAndDebugMacWebKitApp()); } if (architecture()) { return system "arch", "-" . architecture(), archCommandLineArgumentsForRestrictedEnvironmentVariables(), $appPath, argumentsForRunAndDebugMacWebKitApp(); } return system { $appPath } $appPath, argumentsForRunAndDebugMacWebKitApp(); } And to clarify, Safari has long been 64-bit only now. |