fuzzer: EMULATION_ARGUMENT is also required when building on i386 for x86_64
authorAdrian Bunk <bunk@debian.org>
Sat, 7 Nov 2020 14:53:51 +0000 (14:53 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 7 Nov 2020 14:53:51 +0000 (14:53 +0000)
Gbp-Pq: Name x86-fuzzer.patch

compiler-rt/lib/fuzzer/CMakeLists.txt

index b5be6b89452e9b983317a4ce545949b7f54809a1..dcc47193f664e5bb6e92da560880dab02dc2d1d4 100644 (file)
@@ -121,6 +121,8 @@ if(OS_NAME MATCHES "Linux|Fuchsia" AND
   macro(partially_link_libcxx name dir arch)
     if(${arch} MATCHES "i386")
       set(EMULATION_ARGUMENT "-m" "elf_i386")
+    elseif(${arch} MATCHES "x86_64")
+      set(EMULATION_ARGUMENT "-m" "elf_x86_64")
     else()
       set(EMULATION_ARGUMENT "")
     endif()