Bug 172317 - [CMake] Add HAVE check for __int128_t
Summary: [CMake] Add HAVE check for __int128_t
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Don Olmstead
URL:
Keywords:
Depends on:
Blocks: 172144
  Show dependency treegraph
 
Reported: 2017-05-18 15:05 PDT by Don Olmstead
Modified: 2017-05-19 01:58 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.86 KB, patch)
2017-05-18 15:31 PDT, Don Olmstead
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Olmstead 2017-05-18 15:05:46 PDT
CMake can be used to verify the presence of __int128_t.
Comment 1 Don Olmstead 2017-05-18 15:20:44 PDT
Blocks compilation of JSCOnly on Windows
Comment 2 Don Olmstead 2017-05-18 15:31:57 PDT
Created attachment 310558 [details]
Patch

This patch adds a HAVE check for __int128_t. I did not want to do a COMPILER check because clang-cl shows up as both Clang and MSVC so a HAVE check is the best choice. A patch for clang-cl support is coming in the near future.

Currently GCC and Clang expose this. It appears this is exposed only on x64 according to GCC docs https://gcc.gnu.org/onlinedocs/gcc/_005f_005fint128.html. I also saw that clang-cl seems to have that behavior as it does not expose it for x86 builds but does for x64.

I don't believe that the Intel compiler exposes this value in case anyone is using that.

The Platform.h file is modified within the block that has all the corresponding HAVE checks in OptionsCommon. This is to support DARWIN targets that are not using CMake.
Comment 3 Yusuke Suzuki 2017-05-19 01:30:39 PDT
Comment on attachment 310558 [details]
Patch

r=me
Comment 4 WebKit Commit Bot 2017-05-19 01:58:33 PDT
Comment on attachment 310558 [details]
Patch

Clearing flags on attachment: 310558

Committed r217105: <http://trac.webkit.org/changeset/217105>
Comment 5 WebKit Commit Bot 2017-05-19 01:58:35 PDT
All reviewed patches have been landed.  Closing bug.