darwin.developer_cmds: wrap clang -E from clang-wrapped as clang-cpp
This commit is contained in:
parent
bac1418031
commit
2eb97f2ddd
@ -1,7 +1,7 @@
|
|||||||
{ lib, appleDerivation, xcbuildHook, llvmPackages }:
|
{ lib, appleDerivation, xcbuildHook, llvmPackages, makeWrapper }:
|
||||||
|
|
||||||
appleDerivation {
|
appleDerivation {
|
||||||
nativeBuildInputs = [ xcbuildHook ];
|
nativeBuildInputs = [ xcbuildHook makeWrapper ];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# The following copied from
|
# The following copied from
|
||||||
@ -11,8 +11,9 @@ appleDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
makeWrapper ${llvmPackages.clang}/bin/clang $out/bin/clang-cpp --add-flags "--driver-mode=cpp"
|
||||||
substituteInPlace rpcgen/rpc_main.c \
|
substituteInPlace rpcgen/rpc_main.c \
|
||||||
--replace "/usr/bin/cpp" "${llvmPackages.clang-unwrapped}/bin/clang-cpp"
|
--replace "/usr/bin/cpp" "$out/bin/clang-cpp"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# temporary install phase until xcodebuild has "install" support
|
# temporary install phase until xcodebuild has "install" support
|
||||||
|
Loading…
x
Reference in New Issue
Block a user