mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
try to do the release packaging with lto
and the default "python install_python_bindings.py" without it.
This commit is contained in:
@@ -15,6 +15,7 @@ cargo build --release -p deltachat_ffi
|
|||||||
|
|
||||||
# Statically link against libdeltachat.a.
|
# Statically link against libdeltachat.a.
|
||||||
export DCC_RS_DEV=$(pwd)
|
export DCC_RS_DEV=$(pwd)
|
||||||
|
export DCC_RS_TARGET=release
|
||||||
|
|
||||||
# Configure access to a base python and to several python interpreters
|
# Configure access to a base python and to several python interpreters
|
||||||
# needed by tox below.
|
# needed by tox below.
|
||||||
|
|||||||
@@ -17,8 +17,12 @@ if __name__ == "__main__":
|
|||||||
os.environ["DCC_RS_DEV"] = dn
|
os.environ["DCC_RS_DEV"] = dn
|
||||||
|
|
||||||
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["RUSTFLAGS"] = os.environ.get("RUSTFLAGS", "") + extra
|
||||||
cmd.append("--release")
|
cmd.append("--release")
|
||||||
|
|
||||||
print("running:", " ".join(cmd))
|
print("running:", " ".join(cmd))
|
||||||
subprocess.check_call(cmd)
|
subprocess.check_call(cmd)
|
||||||
subprocess.check_call("rm -rf build/ src/deltachat/*.so" , shell=True)
|
subprocess.check_call("rm -rf build/ src/deltachat/*.so" , shell=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user