diff options
author | kwm <kwm@FreeBSD.org> | 2015-08-26 05:59:19 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2015-08-26 05:59:19 +0800 |
commit | 1fcb6e21c0a3624aa885e4898e584f14be8f2bda (patch) | |
tree | 08a026ff66644a2f564375ef57c101144b0b575f /lang/spidermonkey170 | |
parent | 114ad962d1e6843b4e67e3d7066c6883e7d7d8cf (diff) | |
download | freebsd-ports-gnome-1fcb6e21c0a3624aa885e4898e584f14be8f2bda.tar.gz freebsd-ports-gnome-1fcb6e21c0a3624aa885e4898e584f14be8f2bda.tar.zst freebsd-ports-gnome-1fcb6e21c0a3624aa885e4898e584f14be8f2bda.zip |
Fix the build on ARM by adapting a patch from spidermonkey24.
PR: 202229
Submitted by: mikael.urankar@gmail.com
Diffstat (limited to 'lang/spidermonkey170')
-rw-r--r-- | lang/spidermonkey170/files/patch-assembler_jit_ExecutableAllocator.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/spidermonkey170/files/patch-assembler_jit_ExecutableAllocator.h b/lang/spidermonkey170/files/patch-assembler_jit_ExecutableAllocator.h new file mode 100644 index 000000000000..21c71cee6d1f --- /dev/null +++ b/lang/spidermonkey170/files/patch-assembler_jit_ExecutableAllocator.h @@ -0,0 +1,14 @@ +--- assembler/jit/ExecutableAllocator.h.orig 2013-10-29 20:40:26 UTC ++++ assembler/jit/ExecutableAllocator.h +@@ -477,6 +477,11 @@ public: + { + sync_instruction_memory((caddr_t)code, size); + } ++#elif CPU(ARM_TRADITIONAL) && OS(FREEBSD) && COMPILER(CLANG) ++ static void cacheFlush(void* code, size_t size) ++ { ++ __clear_cache(code, reinterpret_cast<char*>(code) + size); ++ } + #endif + + private: |