Remove conditions for HOST_PLATFORM=msys.

It never really worked beyond the most basic of commands
and required a lot of hacks, and these days WSL should be used instead.
This commit is contained in:
Augustin Cavalier
2021-10-22 17:03:44 -04:00
parent b6a6890f4c
commit f638102196
6 changed files with 4 additions and 18 deletions
+2 -6
View File
@@ -222,7 +222,7 @@ HOST_UNARFLAGS ?= x ;
# check the host platform compatibility # check the host platform compatibility
SetPlatformCompatibilityFlagVariables HOST_PLATFORM : HOST : host SetPlatformCompatibilityFlagVariables HOST_PLATFORM : HOST : host
: linux openbsd freebsd darwin msys ; : linux openbsd freebsd darwin ;
HOST_PLATFORM_(host)_COMPATIBLE = 1 ; HOST_PLATFORM_(host)_COMPATIBLE = 1 ;
if $(HOST_PLATFORM) = linux || $(HOST_PLATFORM) = freebsd if $(HOST_PLATFORM) = linux || $(HOST_PLATFORM) = freebsd
@@ -412,10 +412,7 @@ if $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
} else { } else {
HOST_LINKFLAGS += -lm -ldl ; HOST_LINKFLAGS += -lm -ldl ;
HOST_LIBSTDC++ = stdc++ ; HOST_LIBSTDC++ = stdc++ ;
if $(HOST_PLATFORM) = msys { if $(HOST_PLATFORM) = darwin {
HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR
= "PATH=$PATH:$(HOST_BUILD_COMPATIBILITY_LIB_DIR)" ;
} else if $(HOST_PLATFORM) = darwin {
HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR HOST_ADD_BUILD_COMPATIBILITY_LIB_DIR
= "DYLD_LIBRARY_PATH=\"$DYLD_LIBRARY_PATH:$(HOST_BUILD_COMPATIBILITY_LIB_DIR)\"" ; = "DYLD_LIBRARY_PATH=\"$DYLD_LIBRARY_PATH:$(HOST_BUILD_COMPATIBILITY_LIB_DIR)\"" ;
} else { } else {
@@ -649,7 +646,6 @@ switch $(HOST_PLATFORM) {
case linux : HOST_DEFINES += HAIKU_HOST_PLATFORM_LINUX ; case linux : HOST_DEFINES += HAIKU_HOST_PLATFORM_LINUX ;
case freebsd : HOST_DEFINES += HAIKU_HOST_PLATFORM_FREEBSD ; case freebsd : HOST_DEFINES += HAIKU_HOST_PLATFORM_FREEBSD ;
case darwin : HOST_DEFINES += HAIKU_HOST_PLATFORM_DARWIN ; case darwin : HOST_DEFINES += HAIKU_HOST_PLATFORM_DARWIN ;
case msys : HOST_DEFINES += HAIKU_HOST_PLATFORM_MSYS ;
} }
# define host platform 64 bit macro # define host platform 64 bit macro
Vendored
+1 -2
View File
@@ -450,7 +450,7 @@ check_native_xattrs()
xattr_set="setextattr"; xattr_set_args="user \$NAME \"\$VALUE\"" xattr_set="setextattr"; xattr_set_args="user \$NAME \"\$VALUE\""
xattr_get="getextattr"; xattr_get_args="user \$NAME" xattr_get="getextattr"; xattr_get_args="user \$NAME"
;; ;;
linux|msys) linux)
xattr_set="setfattr"; xattr_set_args="-n user.\$NAME -v \"\$VALUE\"" xattr_set="setfattr"; xattr_set_args="-n user.\$NAME -v \"\$VALUE\""
xattr_get="getfattr"; xattr_get_args="-n user.\$NAME" xattr_get="getfattr"; xattr_get_args="-n user.\$NAME"
;; ;;
@@ -601,7 +601,6 @@ case "${platform}" in
Haiku) HOST_PLATFORM=haiku_host ;; Haiku) HOST_PLATFORM=haiku_host ;;
Linux) HOST_PLATFORM=linux ;; Linux) HOST_PLATFORM=linux ;;
OpenBSD) HOST_PLATFORM=openbsd ;; OpenBSD) HOST_PLATFORM=openbsd ;;
MSYS*) HOST_PLATFORM=msys ;;
*) echo Unsupported platform: ${platform} *) echo Unsupported platform: ${platform}
exit 1 ;; exit 1 ;;
esac esac
-4
View File
@@ -18,10 +18,6 @@
typedef unsigned long haiku_build_addr_t; typedef unsigned long haiku_build_addr_t;
#define addr_t haiku_build_addr_t #define addr_t haiku_build_addr_t
#if defined(HAIKU_HOST_PLATFORM_MSYS)
#define __addr_t_defined
#endif
#include <Errors.h> #include <Errors.h>
#include <fcntl.h> #include <fcntl.h>
+1 -1
View File
@@ -21,7 +21,7 @@
// Include the interface to the host platform attributes support, if it shall be // Include the interface to the host platform attributes support, if it shall be
// used to tag files with unique IDs to identify their attribute directory. // used to tag files with unique IDs to identify their attribute directory.
#if HAIKU_HOST_USE_XATTR_REF #if HAIKU_HOST_USE_XATTR_REF
# if defined(HAIKU_HOST_PLATFORM_LINUX) || defined(HAIKU_HOST_PLATFORM_MSYS) # if defined(HAIKU_HOST_PLATFORM_LINUX)
# include "fs_attr_xattr.h" # include "fs_attr_xattr.h"
# elif defined(HAIKU_HOST_PLATFORM_FREEBSD) # elif defined(HAIKU_HOST_PLATFORM_FREEBSD)
# include "fs_attr_extattr.h" # include "fs_attr_extattr.h"
-2
View File
@@ -33,8 +33,6 @@ switch $(HOST_PLATFORM) {
DEFINES += HAVE_STRCHRNUL HAVE_FUNOPEN ; DEFINES += HAVE_STRCHRNUL HAVE_FUNOPEN ;
case darwin : case darwin :
DEFINES += HAVE_FUNOPEN HAVE_QSORT_R ; DEFINES += HAVE_FUNOPEN HAVE_QSORT_R ;
case msys :
DEFINES += HAVE_STRCHRNUL HAVE_QSORT_R HAVE_FOPENCOOKIE ;
case * : case * :
Exit $(SUBDIR)/Jamfile: "Please add a case for your platform" Exit $(SUBDIR)/Jamfile: "Please add a case for your platform"
"($(HOST_PLATFORM))!" ; "($(HOST_PLATFORM))!" ;
-3
View File
@@ -28,9 +28,6 @@
# ifndef HAIKU_HOST_PLATFORM_DARWIN # ifndef HAIKU_HOST_PLATFORM_DARWIN
# include <sys/disklabel.h> # include <sys/disklabel.h>
# endif # endif
# elif defined(HAIKU_HOST_PLATFORM_MSYS)
# include <sys/ioctl.h>
# include <sys/stat.h>
# elif defined(HAIKU_HOST_PLATFORM_LINUX) # elif defined(HAIKU_HOST_PLATFORM_LINUX)
# include <linux/hdreg.h> # include <linux/hdreg.h>
# include <linux/fs.h> # include <linux/fs.h>