summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2016-12-17 12:48:06 +0000
committerSylvestre Ledru <sylvestre@debian.org>2016-12-17 12:48:06 +0000
commit47b071deff324a76d85280c7ddb7e5dbc7668110 (patch)
treeb88a17d74c54d8bb1d31b804d0a8e3d22cb7f8fb /lldb/scripts
parentfa1030e40b5febfd41af64e1a4114792b91e4bbc (diff)
downloadbcm5719-llvm-47b071deff324a76d85280c7ddb7e5dbc7668110.tar.gz
bcm5719-llvm-47b071deff324a76d85280c7ddb7e5dbc7668110.zip
Support of lldb on Kfreebsd
Summary: Patch by Pino Toscano. Reported in http://bugs.debian.org/835665 Reviewers: tfiala, emaste Subscribers: beanz, mgorny, emaste, krytarowski, brucem, tberghammer, danalbert, srhines, #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D23977 llvm-svn: 290044
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/Python/modules/CMakeLists.txt2
-rw-r--r--lldb/scripts/utilsOsType.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/lldb/scripts/Python/modules/CMakeLists.txt b/lldb/scripts/Python/modules/CMakeLists.txt
index 01ab5771bda..cef7063c6cc 100644
--- a/lldb/scripts/Python/modules/CMakeLists.txt
+++ b/lldb/scripts/Python/modules/CMakeLists.txt
@@ -6,6 +6,6 @@ if (CXX_SUPPORTS_NO_MACRO_REDEFINED)
endif ()
# build the Python readline suppression module only on Linux
-if (CMAKE_SYSTEM_NAME MATCHES "Linux")
+​if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "GNU" OR CMAKE_SYSTEM_NAME STREQUAL "kFreeBSD")
add_subdirectory(readline)
endif()
diff --git a/lldb/scripts/utilsOsType.py b/lldb/scripts/utilsOsType.py
index fe3552e8a5d..5f4a0528bf0 100644
--- a/lldb/scripts/utilsOsType.py
+++ b/lldb/scripts/utilsOsType.py
@@ -36,6 +36,7 @@ if sys.version_info.major >= 3:
Linux = 3
NetBSD = 4
Windows = 5
+ kFreeBSD = 6
else:
class EnumOsType(object):
values = ["Unknown",
@@ -43,7 +44,8 @@ else:
"FreeBSD",
"Linux",
"NetBSD",
- "Windows"]
+ "Windows",
+ "kFreeBSD"]
class __metaclass__(type):
#++----------------------------------------------------------------
@@ -91,5 +93,7 @@ def determine_os_type():
eOSType = EnumOsType.NetBSD
elif strOS == "win32":
eOSType = EnumOsType.Windows
+ elif strOS.startswith("gnukfreebsd"):
+ eOSType = EnumOsType.kFreeBSD
return eOSType
OpenPOWER on IntegriCloud