gdb: Flexible target matching for darwin
Outside of the nix-build the target is `x86_64-apple-darwin17.4.0`, while inside the target is `x86_64-apple-darwin`. This difference causes the fallback target configuration for darwin, which disables gdb. Add a patch to make the target matching more flexible.
This commit is contained in:
@@ -35,7 +35,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0d2bpqk58fqlx21rbnk8mbcjlggzc9kb5sjirrfrrrjq70ka0qdg";
|
||||
};
|
||||
|
||||
patches = [ ./debug-info-from-env.patch ];
|
||||
patches = [ ./debug-info-from-env.patch ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin ./darwin-target-match.patch;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig texinfo perl setupDebugInfoDirs ]
|
||||
# TODO(@Ericson2314) not sure if should be host or target
|
||||
|
||||
Reference in New Issue
Block a user