fuzzer: EMULATION_ARGUMENT is also required when building on i386 for x86_64
authorAdrian Bunk <bunk@debian.org>
Sat, 4 Jun 2022 13:30:38 +0000 (14:30 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 4 Jun 2022 13:30:38 +0000 (14:30 +0100)
Gbp-Pq: Name x86-fuzzer.patch

compiler-rt/lib/fuzzer/CMakeLists.txt

index 3201ed279a621de7713b4b19f6cd18e289ba5347..cb4fc348ef5851f3a0ee6452eef222cb0673265d 100644 (file)
@@ -138,6 +138,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()