From a3e69502b0eaf1126d6093e8ea5e6fdb95219811 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 30 Aug 2024 12:04:56 +0900 Subject: [PATCH] Refactor --- install-build-deps.sh | 5 +---- src/mold-wrapper.c | 2 +- test/{bug178.sh => no-object-file.sh} | 0 3 files changed, 2 insertions(+), 5 deletions(-) rename test/{bug178.sh => no-object-file.sh} (100%) diff --git a/install-build-deps.sh b/install-build-deps.sh index 770804b38d..dcc2a020e4 100755 --- a/install-build-deps.sh +++ b/install-build-deps.sh @@ -19,10 +19,7 @@ ubuntu-* | pop-* | linuxmint-* | debian-* | raspbian-*) fedora-* | amzn-* | rhel-*) dnf install -y gcc-g++ cmake glibc-static libstdc++-static diffutils util-linux ;; -opensuse-leap-*) - zypper install -y make cmake gcc-c++ gcc11-c++ glibc-devel-static tar diffutils util-linux - ;; -opensuse-tumbleweed-*) +opensuse-*) zypper install -y make cmake gcc-c++ glibc-devel-static tar diffutils util-linux ;; gentoo-*) diff --git a/src/mold-wrapper.c b/src/mold-wrapper.c index a4951f3331..d63d4de104 100644 --- a/src/mold-wrapper.c +++ b/src/mold-wrapper.c @@ -9,7 +9,7 @@ #include #include -#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__NetBSD__) +#if __has_include() # include #endif diff --git a/test/bug178.sh b/test/no-object-file.sh similarity index 100% rename from test/bug178.sh rename to test/no-object-file.sh