Ticket #4053: GCC6.patch

File GCC6.patch, 909 bytes (added by Itms, 8 years ago)
  • libraries/source/spidermonkey/build.sh

     
    1717echo "Building SpiderMonkey..."
    1818echo
    1919
     20# Compiling with GCC 6 causes regressions (especially segfaults).
     21# Most packaged versions of SM38 include workarounds, please use them.
     22if [ "${OS}" != "Windows_NT" ]
     23then
     24  if [ "`cc -dumpversion | cut -f1 -d.`" = "6" ]
     25  then
     26    echo "Compiling SpiderMonkey 38 with GCC6 is known to cause segfaults."
     27    echo "If GCC6 is the default compiler on your platform, the maintainers of mozjs38 should have\
     28 patched it against those regressions. Please install that package and build with --with-system-mozjs38."
     29    exit 1
     30  fi
     31fi
     32
    2033# Use Mozilla make on Windows
    2134if [ "${OS}" = "Windows_NT" ]
    2235then