Skip to content

Commit b01dd8f

Browse files
committed
Add support for GNU Hurd
Work in progress.
1 parent 1939544 commit b01dd8f

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

doc/man/cbmc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Set analysis architecture, which defaults to the host architecture. Use one of:
199199
\fB\-\-os\fR \fIos\fR
200200
Set analysis operating system, which defaults to the host operating system. Use
201201
one of: \fBfreebsd\fR, \fBlinux\fR, \fBmacos\fR, \fBnetbsd\fR, \fBopenbsd\fR,
202-
\fBsolaris\fR, or \fBwindows\fR.
202+
\fBsolaris\fR, \fBhurd\fR, or \fBwindows\fR.
203203
.TP
204204
\fB\-\-i386\-linux\fR, \fB\-\-i386\-win32\fR, \fB\-\-i386\-macos\fR, \fB\-\-ppc\-macos\fR, \fB\-\-win32\fR, \fB\-\-winx64\fR
205205
Set analysis architecture and operating system.

doc/man/goto-analyzer.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ Set analysis architecture, which defaults to the host architecture. Use one of:
461461
\fB\-\-os\fR \fIos\fR
462462
Set analysis operating system, which defaults to the host operating system. Use
463463
one of: \fBfreebsd\fR, \fBlinux\fR, \fBmacos\fR, \fBnetbsd\fR, \fBopenbsd\fR,
464-
\fBsolaris\fR, or \fBwindows\fR.
464+
\fBsolaris\fR, \fBhurd\fR, or \fBwindows\fR.
465465
.TP
466466
\fB\-\-i386\-linux\fR, \fB\-\-i386\-win32\fR, \fB\-\-i386\-macos\fR, \fB\-\-ppc\-macos\fR, \fB\-\-win32\fR, \fB\-\-winx64\fR
467467
Set analysis architecture and operating system.

doc/man/janalyzer.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Set analysis architecture, which defaults to the host architecture. Use one of:
279279
\fB\-\-os\fR \fIos\fR
280280
Set analysis operating system, which defaults to the host operating system. Use
281281
one of: \fBfreebsd\fR, \fBlinux\fR, \fBmacos\fR, \fBnetbsd\fR, \fBopenbsd\fR,
282-
\fBsolaris\fR, or \fBwindows\fR.
282+
\fBsolaris\fR, \fBhurd\fR, or \fBwindows\fR.
283283
.TP
284284
\fB\-\-i386\-linux\fR, \fB\-\-i386\-win32\fR, \fB\-\-i386\-macos\fR, \fB\-\-ppc\-macos\fR, \fB\-\-win32\fR, \fB\-\-winx64\fR
285285
Set analysis architecture and operating system.

doc/man/jbmc.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Set analysis architecture, which defaults to the host architecture. Use one of:
8383
\fB\-\-os\fR \fIos\fR
8484
Set analysis operating system, which defaults to the host operating system. Use
8585
one of: \fBfreebsd\fR, \fBlinux\fR, \fBmacos\fR, \fBnetbsd\fR, \fBopenbsd\fR,
86-
\fBsolaris\fR, or \fBwindows\fR.
86+
\fBsolaris\fR, \fBhurd\fR, or \fBwindows\fR.
8787
.TP
8888
\fB\-\-i386\-linux\fR, \fB\-\-i386\-win32\fR, \fB\-\-i386\-macos\fR, \fB\-\-ppc\-macos\fR, \fB\-\-win32\fR, \fB\-\-winx64\fR
8989
Set analysis architecture and operating system.

src/util/config.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ bool configt::set(const cmdlinet &cmdline)
952952
ansi_c.mode = ansi_ct::flavourt::CLANG;
953953
ansi_c.preprocessor=ansi_ct::preprocessort::CLANG;
954954
}
955-
else if(os == "linux" || os == "solaris" || os == "netbsd")
955+
else if(os == "linux" || os == "solaris" || os == "netbsd" || os == "hurd")
956956
{
957957
ansi_c.lib=configt::ansi_ct::libt::LIB_FULL;
958958
ansi_c.os=configt::ansi_ct::ost::OS_LINUX;
@@ -1474,6 +1474,8 @@ irep_idt configt::this_operating_system()
14741474
this_os="linux";
14751475
#elif __SVR4
14761476
this_os="solaris";
1477+
#elif __gnu_hurd__
1478+
this_os = "hurd";
14771479
#else
14781480
this_os="unknown";
14791481
#endif

src/util/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class symbol_table_baset;
107107
"set operating system (default: " + \
108108
id2string(configt::this_operating_system()) + \
109109
") to one of: {yfreebsd}, {ylinux}, {ymacos}, {ynetbsd}, {yopenbsd}, " \
110-
"{ysolaris}, or {ywindows}\n" \
110+
"{ysolaris}, {yhurd}, or {ywindows}\n" \
111111
" {y--i386-linux}, {y--i386-win32}, {y--i386-macos}, {y--ppc-macos}, " \
112112
"{y--win32}, {y--winx64} \t " \
113113
"set architecture and operating system\n" \

0 commit comments

Comments
 (0)