Date: Tue Oct 18 05:46:45 2016
New Revision: 284469
Fixup r284466 - try to unbreak NetBSD
NetBSD does not have getopt as well - we need to apply the workaround there too.
FreeBSD seems to be fine though.
--- lldb/trunk/tools/driver/CMakeLists.txt (original)
+++ lldb/trunk/tools/driver/CMakeLists.txt Tue Oct 18 05:46:45 2016
@@ -20,9 +20,10 @@ if ( LLDB_CAN_USE_DEBUGSERVER )
-if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
- # Windows does not have getopt support, so it relies on the one provided by
- # liblldb. However, getopt is not a part of the liblldb interfact, so we have
+if ((CMAKE_SYSTEM_NAME MATCHES "Windows") OR
+ (CMAKE_SYSTEM_NAME MATCHES "NetBSD" ))
+ # These targets do not have getopt support, so they rely on the one provided
+ # liblldb. However, getopt is not a part of the liblldb interface, so we have
# to link against the constituent libraries manually. Note that this is
# extremely scary as it introduces ODR violations, and it should go away as
# soon as possible.
lldb-commits mailing list