Disable asm on native client
This commit is contained in:
parent
5f3b59c8b0
commit
fbad64f6ef
@ -72,9 +72,13 @@ AC_ARG_ENABLE(asm,
|
||||
enable_asm="yes"
|
||||
])
|
||||
|
||||
AS_IF([test "x$EMSCRIPTEN" != "x"],[
|
||||
AS_IF([test "x$EMSCRIPTEN" != "x"], [
|
||||
enable_asm="no"
|
||||
AC_MSG_WARN([compiling to javascript - asm implementations disabled])
|
||||
AC_MSG_WARN([compiling to JavaScript - asm implementations disabled])
|
||||
])
|
||||
AS_IF([test "$host_os" = "nacl" -o "$host_os" = "pnacl"], [
|
||||
enable_asm="no"
|
||||
AC_MSG_WARN([compiling to Native Client - asm implementations disabled])
|
||||
])
|
||||
|
||||
AC_ARG_ENABLE(pie,
|
||||
|
@ -106,7 +106,7 @@ _sodium_crit_leave(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#elif defined(__GNUC__) && !defined(__EMSCRIPTEN__)
|
||||
#elif defined(__GNUC__) && !defined(__EMSCRIPTEN__) && !defined(__native_client__)
|
||||
|
||||
static volatile int _sodium_lock;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user