Ignore:
Timestamp:
Apr 8, 2021, 12:05:31 PM (4 years ago)
Author:
[email protected]
Message:

[WPE] Build fixes for musl C library on Linux
https://bugs.webkit.org/show_bug.cgi?id=210068

Patch by Khem Raj <[email protected]> on 2021-04-08
Reviewed by Carlos Alberto Lopez Perez.

Source/JavaScriptCore:

Use OS(LINUX) to include musl in platform test
for linux and consolidate all linux platfrom
under same test. Use smaller limits for JSC
stack size per thread and reserved zone size.

  • runtime/MachineContext.h:

(JSC::MachineContext::stackPointerImpl):
(JSC::MachineContext::framePointerImpl):
(JSC::MachineContext::instructionPointerImpl):
(JSC::MachineContext::argumentPointer<1>):
(JSC::MachineContext::llintInstructionPointer):

  • runtime/OptionsList.h:

Source/WTF:

Define 128KB DEFAULT_THREAD_STACK_SIZE_IN_KB for musl
Use OS(LINUX) check to include musl when building for
Linux based platforms.

  • wtf/PlatformHave.h:
  • wtf/Threading.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/MachineContext.h

    r268247 r275670  
    197197#endif
    198198
    199 #elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__)
     199#elif OS(FUCHSIA) || OS(LINUX)
    200200
    201201#if CPU(X86)
     
    348348#endif
    349349
    350 #elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__)
     350#elif OS(FUCHSIA) || OS(LINUX)
    351351
    352352// The following sequence depends on glibc's sys/ucontext.h.
     
    499499#endif
    500500
    501 #elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__)
     501#elif OS(FUCHSIA) || OS(LINUX)
    502502
    503503// The following sequence depends on glibc's sys/ucontext.h.
     
    657657#endif
    658658
    659 #elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__)
     659#elif OS(FUCHSIA) || OS(LINUX)
    660660
    661661// The following sequence depends on glibc's sys/ucontext.h.
     
    774774#endif
    775775
    776 #elif OS(FUCHSIA) || defined(__GLIBC__) || defined(__BIONIC__)
     776#elif OS(FUCHSIA) || OS(LINUX)
    777777
    778778// The following sequence depends on glibc's sys/ucontext.h.
Note: See TracChangeset for help on using the changeset viewer.