bear: fix on x86_64-darwin

This commit is contained in:
Dmitry Kalinkin 2021-08-27 20:21:51 -04:00
parent c0c88243ee
commit e2e44d9b5c
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333
2 changed files with 10 additions and 3 deletions

View file

@ -49,6 +49,9 @@ stdenv.mkDerivation rec {
./no-double-relative.patch
];
# 'path' is unavailable: introduced in macOS 10.15
CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-D_LIBCPP_DISABLE_AVAILABILITY";
meta = with lib; {
description = "Tool that generates a compilation database for clang tooling";
longDescription = ''
@ -60,7 +63,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ babariviere qyliss ];
# ld: symbol(s) not found for architecture x86_64
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}

View file

@ -13343,7 +13343,13 @@ with pkgs;
buildBazelPackage = callPackage ../build-support/build-bazel-package { };
bear = callPackage ../development/tools/build-managers/bear { };
bear = callPackage ../development/tools/build-managers/bear {
# error: no viable constructor or deduction guide for deduction of template arguments of 'map'
stdenv = if stdenv.hostPlatform.system == "x86_64-darwin" then
llvmPackages_11.stdenv
else
stdenv;
};
bin_replace_string = callPackage ../development/tools/misc/bin_replace_string { };