[all-commits] [llvm/llvm-project] 6a4f84: [libc] Only use __has_builtin on clang
Alex Brachet via All-commits
all-commits at lists.llvm.org
Sat Mar 28 09:29:13 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6a4f8423ae681c4feb7481b9c7e222cc6cdb2c45
https://github.com/llvm/llvm-project/commit/6a4f8423ae681c4feb7481b9c7e222cc6cdb2c45
Author: Alex Brachet <alexbrachetmialot at gmail.com>
Date: 2020-03-28 (Sat, 28 Mar 2020)
Changed paths:
M libc/src/string/memory_utils/memcpy_utils.h
Log Message:
-----------
[libc] Only use __has_builtin on clang
The preprocessor reads the whole line even if the first condition of an and is false so this broke when compiling on older gcc versions which don't recognize `__has_builtin`
More information about the All-commits
mailing list