[PATCH] D37304: Add preliminary NetBSD support in libfuzzer

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 30 14:56:02 PDT 2017


kcc added a comment.

Mostly LG



================
Comment at: lib/fuzzer/tests/CMakeLists.txt:13
 set(LIBFUZZER_UNITTEST_LINK_FLAGS ${COMPILER_RT_UNITTEST_LINK_FLAGS})
+if (OS_NAME MATCHES "NetBSD")
+  list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -lrt)
----------------
I think this should be fixed on the driver side, i.e. -fsanitize=address (and similar) should add -lrt, as they do on Linux. 


Repository:
  rL LLVM

https://reviews.llvm.org/D37304





More information about the llvm-commits mailing list