]> git.proxmox.com Git - wasi-libc.git/commit
Disable the lseek optimization in C++.
authorDan Gohman <sunfish@mozilla.com>
Wed, 10 Jul 2019 00:21:38 +0000 (17:21 -0700)
committerDan Gohman <sunfish@mozilla.com>
Thu, 29 Aug 2019 14:03:29 +0000 (07:03 -0700)
commit7d2354e7d1abee9d09ff940c09ee1e1e2e279804
treef9bc58bd91de83dc321d03c02187f40f5a4a8da3
parent255e6f7c0d23d6df76d34f53fb35b83f9b3c55c6
Disable the lseek optimization in C++.

The lseek optimization turns lseek calls into __wasilibc_tell calls when
possible, using macros and __builtin_constant_p. However, this isn't
safe in C++ code in the presence of namespaces and `using` declarations,
to just disable it in C++ for now.
libc-top-half/musl/include/unistd.h