haikuwebkit/Source/ThirdParty/gtest/xcode
Kimmo Kinnunen b494d6b0de gtest.a exports symbols, causing link-time warning: direct access in function ... means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
https://bugs.webkit.org/show_bug.cgi?id=224812

Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-04-20
Reviewed by Alexey Proskuryakov.

Compile and use gtest as a static library that does not export any symbols.
Fixes link-time warnings about mismatch of symbol visibility. The error occurs when
gtest.a is compiled exporting symbols with default visibility, but the clients use the library
and hide the symbols via ld flags.

Source/ThirdParty:

* gtest/xcode/Config/StaticLibraryTarget.xcconfig:
Compile the static gtest with GTEST_API_=

Tools:

* TestWebKitAPI/Configurations/TestWTF.xcconfig:
* TestWebKitAPI/Configurations/TestWebKitAPI.xcconfig:
Compile the gtest clients with GTEST_API_=

Canonical link: https://commits.webkit.org/236800@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-20 22:06:17 +00:00
..
Config gtest.a exports symbols, causing link-time warning: direct access in function ... means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings. 2021-04-20 22:06:17 +00:00
Resources Update googletest to 1a8ecf1 2021-03-23 18:45:25 +00:00
Samples/FrameworkSample
Scripts Update googletest to 1a8ecf1 2021-03-23 18:45:25 +00:00
gtest.xcodeproj Update googletest to 1a8ecf1 2021-03-23 18:45:25 +00:00
Makefile