RESOLVED INVALID 74306
Fix Platform.h settings on non-IOS-simulator platforms
https://bugs.webkit.org/show_bug.cgi?id=74306
Summary Fix Platform.h settings on non-IOS-simulator platforms
Andy Wingo
Reported 2011-12-12 09:09:20 PST
r100037 was intended to update the ios Platform.h defines, but it unintentionally sets a number of Platform.h variables on other platforms.
Attachments
Patch (1.42 KB, patch)
2011-12-12 09:11 PST, Andy Wingo
ddkilzer: review-
Andy Wingo
Comment 1 2011-12-12 09:11:01 PST
David Kilzer (:ddkilzer)
Comment 2 2011-12-12 09:26:07 PST
Comment on attachment 118808 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=118808&action=review > Source/JavaScriptCore/wtf/Platform.h:595 > #if PLATFORM(IOS_SIMULATOR) > - #define ENABLE_INTERPRETER 1 > - #define ENABLE_JIT 0 > - #define ENABLE_YARR 0 > - #define ENABLE_YARR_JIT 0 > -#else > - #define ENABLE_INTERPRETER 1 > - #define ENABLE_JIT 1 > - #define ENABLE_YARR 1 > - #define ENABLE_YARR_JIT 1 > +#define ENABLE_INTERPRETER 1 > +#define ENABLE_JIT 0 > +#define ENABLE_YARR 0 > +#define ENABLE_YARR_JIT 0 > #endif This whole block is inside a #if PLATFORM(IOS)/#endif macro pair. How are these macros being interpreted by other platforms? Is there a mismatched #if/[#else/]#endif block above this? > Source/JavaScriptCore/wtf/Platform.h:597 > #endif This is the end of the #if PLATFORM(IOS) macro.
Andy Wingo
Comment 3 2011-12-12 09:29:49 PST
I clearly was not thinking when I posted this patch. I think I was used to reading platform.h as a series of mostly unnested blocks. Sorry for the noise!
Note You need to log in before you can comment on or make changes to this bug.