mirror of
https://github.com/chatmail/core.git
synced 2026-05-13 20:06:30 +03:00
Fix compilation of python bindings in release mode
This commit is contained in:
@@ -19,8 +19,7 @@ if __name__ == "__main__":
|
|||||||
cmd = ["cargo", "build", "-p", "deltachat_ffi"]
|
cmd = ["cargo", "build", "-p", "deltachat_ffi"]
|
||||||
|
|
||||||
if target == 'release':
|
if target == 'release':
|
||||||
extra = " -C lto=on -C embed-bitcode=yes"
|
os.environ["CARGO_PROFILE_RELEASE_LTO"] = "on"
|
||||||
os.environ["RUSTFLAGS"] = os.environ.get("RUSTFLAGS", "") + extra
|
|
||||||
cmd.append("--release")
|
cmd.append("--release")
|
||||||
|
|
||||||
print("running:", " ".join(cmd))
|
print("running:", " ".join(cmd))
|
||||||
|
|||||||
Reference in New Issue
Block a user