mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Merge #2717
2717: Disable LTO due to compilation failures on some platforms r=curquiza a=loiclec Meilisearch fails to compile on aarch64 Linux due to a linker error ( https://github.com/meilisearch/meilisearch/runs/8072616457?check_suite_focus=true ). This is probably caused by link-time-optimisation (LTO). Since it is not possible to modify a profile based on the target triple, this PR deactivates LTO completely for all platforms. In the future, we might want to create different custom profiles, such as: ```toml [profile.release-lto] inherits = "release" lto = "thin" ``` and compile Meilisearch using `cargo build --profile release-lto` on the platforms that can support it. Co-authored-by: Loïc Lecrenier <loic@meilisearch.com>
This commit is contained in:
commit
1131400694
@ -10,7 +10,6 @@ members = [
|
|||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
lto = "thin"
|
|
||||||
|
|
||||||
[profile.dev.package.flate2]
|
[profile.dev.package.flate2]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
Loading…
Reference in New Issue
Block a user