blob: ed22b6e751bbd60dc308ab826fc8fd04fb8368f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- src/3rdparty/chromium/third_party/nasm/BUILD.gn.orig 2023-03-28 19:45:02 UTC
+++ src/3rdparty/chromium/third_party/nasm/BUILD.gn
@@ -59,6 +59,13 @@ config("nasm_config") {
defines = [ "HAVE_CONFIG_H" ]
+ _string_h_lines =
+ read_file("/usr/include/string.h", "list lines")
+ _mempcpy = filter_include(_string_h_lines, [ "*\*mempcpy*" ])
+ if (_mempcpy != []) {
+ defines += [ "HAVE_MEMPCPY=1" ]
+ }
+
if (is_clang) {
cflags = [
# The inline functions in NASM's headers flag this.
|