mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Change the 'libcef_static' target type from static_library to source_set
Using a source_set here keeps the linker on Windows from discarding exported compilation units that are not directly called from inside libcef_static. This may also fix linker errors on Linux due to CEF's use of an intermediate static library (see https://crbug.com/1319006#c2).
This commit is contained in:
@@ -22,19 +22,6 @@ constexpr const char kCategory[] = "cef.client";
|
||||
|
||||
} // namespace
|
||||
|
||||
// The contents of this file are a compilation unit that is not called by other
|
||||
// functions in the the library. Consiquently MSVS will exclude it during the
|
||||
// linker stage if we don't call a stub function.
|
||||
#if defined(COMPILER_MSVC)
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
|
||||
void base_impl_stub() {}
|
||||
|
||||
#if defined(COMPILER_MSVC)
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
CEF_EXPORT void cef_trace_event_instant(const char* /* category */,
|
||||
const char* name,
|
||||
const char* arg1_name,
|
||||
|
Reference in New Issue
Block a user