mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-24 07:16:42 +00:00
Revert "Use mold linker for development."
This reverts commit 4f1a1bbce5
. This was
intended to improve the development speed, but it breaks the build. This
is because even when cross-compiling, the Rust compiler does compile
some code for the host target for code-generation.
This commit is contained in:
parent
e0a9e52cca
commit
f62d8b325c
@ -1,7 +1,3 @@
|
|||||||
[target.x86_64-unknown-linux-gnu]
|
|
||||||
linker = "clang"
|
|
||||||
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
|
||||||
|
|
||||||
[target.x86_64-unknown-linux-musl]
|
[target.x86_64-unknown-linux-musl]
|
||||||
rustflags = ["-C", "target-feature=+crt-static", "-C", "link-arg=-s", "-C", "link-arg=-lc", "-C", "link-arg=-lgcc"]
|
rustflags = ["-C", "target-feature=+crt-static", "-C", "link-arg=-s", "-C", "link-arg=-lc", "-C", "link-arg=-lgcc"]
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ pkgs.mkShell {
|
|||||||
pkgs.protoc-gen-grpc-web # grpc-web api
|
pkgs.protoc-gen-grpc-web # grpc-web api
|
||||||
pkgs.protoc-gen-go # go api
|
pkgs.protoc-gen-go # go api
|
||||||
pkgs.protoc-gen-go-grpc
|
pkgs.protoc-gen-go-grpc
|
||||||
pkgs.mold
|
|
||||||
];
|
];
|
||||||
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
|
||||||
BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.llvmPackages.libclang.lib}/lib/clang/${pkgs.llvmPackages.libclang.version}/include";
|
BINDGEN_EXTRA_CLANG_ARGS = "-I${pkgs.llvmPackages.libclang.lib}/lib/clang/${pkgs.llvmPackages.libclang.version}/include";
|
||||||
|
Loading…
Reference in New Issue
Block a user