Ticket #62516: patch-ccache-powerpc-darwin.diff

File patch-ccache-powerpc-darwin.diff, 1.1 KB (added by kencu (Ken), 4 years ago)
  • src/third_party/doctest.h

    diff --git src/third_party/doctest.h src/third_party/doctest.h
    index 7712dd6..2452723 100644
    DOCTEST_MSVC_SUPPRESS_WARNING(26812) // Prefer 'enum class' over 'enum' 
    370370#elif defined(DOCTEST_PLATFORM_MAC)
    371371#if defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) || defined(__i386)
    372372#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("int $3\n" : :)
     373#elif defined(__ppc__) || defined(__ppc64__)
     374// https://www.cocoawithlove.com/2008/03/break-into-debugger.html
     375#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n": : : "memory","r0","r3","r4")
    373376#else
    374377#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("brk #0");
    375378#endif
  • test/run

    diff --git test/run test/run
    index 2244943..ebf46c8 100755
    if [[ $OSTYPE = msys* ]]; then 
    514514fi
    515515
    516516if $HOST_OS_APPLE; then
    517     SDKROOT=$(xcrun --sdk macosx --show-sdk-path 2>/dev/null)
     517    SDKROOT=/
    518518    if [ "$SDKROOT" = "" ]; then
    519519        echo "Error: xcrun --show-sdk-path failure"
    520520        exit 1