diff options
Diffstat (limited to 'libc/src')
| -rw-r--r-- | libc/src/setjmp/x86_64/sigsetjmp.cpp | 3 | ||||
| -rw-r--r-- | libc/src/string/CMakeLists.txt | 11 |
2 files changed, 2 insertions, 12 deletions
diff --git a/libc/src/setjmp/x86_64/sigsetjmp.cpp b/libc/src/setjmp/x86_64/sigsetjmp.cpp index 4c97a01..2bad053 100644 --- a/libc/src/setjmp/x86_64/sigsetjmp.cpp +++ b/libc/src/setjmp/x86_64/sigsetjmp.cpp @@ -41,7 +41,7 @@ LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf buf)) { [epilogue] "X"(sigsetjmp_epilogue) : "eax", "ebx", "ecx"); } -#endif +#else [[gnu::naked]] LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf, int)) { asm(R"( @@ -64,5 +64,6 @@ LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf, int)) { [epilogue] "X"(sigsetjmp_epilogue) : "rax", "rbx"); } +#endif } // namespace LIBC_NAMESPACE_DECL diff --git a/libc/src/string/CMakeLists.txt b/libc/src/string/CMakeLists.txt index 83c9564..a640e1d 100644 --- a/libc/src/string/CMakeLists.txt +++ b/libc/src/string/CMakeLists.txt @@ -1,15 +1,5 @@ add_subdirectory(memory_utils) -if(LIBC_CONF_STRING_UNSAFE_WIDE_READ) - list(APPEND string_config_options "-DLIBC_COPT_STRING_UNSAFE_WIDE_READ") -endif() -if(LIBC_CONF_MEMSET_X86_USE_SOFTWARE_PREFETCHING) - list(APPEND string_config_options "-DLIBC_COPT_MEMSET_X86_USE_SOFTWARE_PREFETCHING") -endif() -if(string_config_options) - list(PREPEND string_config_options "COMPILE_OPTIONS") -endif() - add_header_library( string_utils HDRS @@ -24,7 +14,6 @@ add_header_library( libc.src.__support.common libc.src.__support.macros.attributes libc.src.string.memory_utils.inline_memcpy - ${string_config_options} ) add_header_library( |
