blob: a056b77b8a9abf95823c8459421fde6e7303404b (
plain) (
tree)
|
|
--- third_party/nasm/BUILD.gn.orig 2023-01-11 09:17:16 UTC
+++ third_party/nasm/BUILD.gn
@@ -63,6 +63,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.
|