diff --git a/ct/oxicloud.sh b/ct/oxicloud.sh index fc16fa086..d146c4e82 100644 --- a/ct/oxicloud.sh +++ b/ct/oxicloud.sh @@ -43,6 +43,7 @@ function update_script() { PG_DB_PASS="$(sed -n '/Password:/s/[^:]*:[[:space:]]//p' ~/oxicloud.creds)" cd /opt/oxicloud export DATABASE_URL="postgres://oxicloud:${PG_DB_PASS}@localhost/oxicloud" + export RUSTFLAGS="-C target-cpu=native" $STD cargo build --release mv target/release/oxicloud /usr/bin/oxicloud && chmod +x /usr/bin/oxicloud msg_ok "Updated OxiCloud" diff --git a/install/oxicloud-install.sh b/install/oxicloud-install.sh index c3cdd070d..2d248c75d 100644 --- a/install/oxicloud-install.sh +++ b/install/oxicloud-install.sh @@ -27,6 +27,7 @@ RUST_TOOLCHAIN=$TOOLCHAIN setup_rust msg_info "Building OxiCloud" cd /opt/oxicloud export DATABASE_URL="postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost/${PG_DB_NAME}" +export RUSTFLAGS="-C target-cpu=native" $STD cargo build --release mv target/release/oxicloud /usr/bin/oxicloud && chmod +x /usr/bin/oxicloud msg_ok "Built OxiCloud"