| 20 | # Compiling with GCC 6 causes regressions (especially segfaults). |
| 21 | # Most packaged versions of SM38 include workarounds, please use them. |
| 22 | if [ "${OS}" != "Windows_NT" ] |
| 23 | then |
| 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 |
| 31 | fi |
| 32 | |