Skip to content

New package: zeditor-0.230.2#59813

Open
JudahJL wants to merge 1 commit intovoid-linux:masterfrom
JudahJL:newpkg-zeditor
Open

New package: zeditor-0.230.2#59813
JudahJL wants to merge 1 commit intovoid-linux:masterfrom
JudahJL:newpkg-zeditor

Conversation

@JudahJL
Copy link
Copy Markdown
Contributor

@JudahJL JudahJL commented Apr 7, 2026

Testing the changes

  • I tested the changes in this PR: YES

New package

Local build testing

  • I built this PR locally for my native architecture, (x86_64-glibc)
  • I built this PR locally for these architectures (crossbuilds):
    • aarch64-glibc

@tranzystorekk tranzystorekk added the new-package This PR adds a new package label Apr 7, 2026
@Nizarjh
Copy link
Copy Markdown
Contributor

Nizarjh commented Apr 8, 2026

dupllicate #58659

@JudahJL
Copy link
Copy Markdown
Contributor Author

JudahJL commented Apr 8, 2026

@Nizarjh I apologize for the duplicate pr.
didnt notice another pending pr.
I just wanted to add zed to the main repo as quickly as possible to use it asap.
Note: This one doesnt build the remote_server for now(commented it out). will do it at next update or if asked to do in review

@Nizarjh
Copy link
Copy Markdown
Contributor

Nizarjh commented Apr 8, 2026

@Nizarjh I apologize for the duplicate pr. didnt notice another pending pr. I just wanted to add zed to the main repo as quickly as possible to use it asap. Note: This one doesnt build the remote_server for now(commented it out). will do it at next update or if asked to do in review

u can use my template and patches for your own)

Comment on lines +28 to +54
local target_env="${RUST_TARGET//-/_}"
target_env="${target_env^^}"

local cc_var="CC_${target_env}"
local cflags_var="CFLAGS_${target_env}"
local ldflags_var="LDFLAGS_${target_env}"

echo "Cross-compilation environment setup:"
echo "${cc_var} = ${!cc_var}"
echo "${cflags_var} = ${!cflags_var}"
echo "${ldflags_var} = ${!ldflags_var}"
echo "---"
echo "Original CC = $CC"
echo "Original CFLAGS = $CFLAGS"
echo "---"

export "CC_${target_env}=$CC"
export "CFLAGS_${target_env}=$CFLAGS"
export "LDFLAGS_${target_env}=$LDFLAGS"

echo "${cc_var} = ${!cc_var}"
echo "${cflags_var} = ${!cflags_var}"
echo "${ldflags_var} = ${!ldflags_var}"
echo "---"
unset CFLAGS
unset LDFLAGS
unset CXXFLAGS
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
local target_env="${RUST_TARGET//-/_}"
target_env="${target_env^^}"
local cc_var="CC_${target_env}"
local cflags_var="CFLAGS_${target_env}"
local ldflags_var="LDFLAGS_${target_env}"
echo "Cross-compilation environment setup:"
echo "${cc_var} = ${!cc_var}"
echo "${cflags_var} = ${!cflags_var}"
echo "${ldflags_var} = ${!ldflags_var}"
echo "---"
echo "Original CC = $CC"
echo "Original CFLAGS = $CFLAGS"
echo "---"
export "CC_${target_env}=$CC"
export "CFLAGS_${target_env}=$CFLAGS"
export "LDFLAGS_${target_env}=$LDFLAGS"
echo "${cc_var} = ${!cc_var}"
echo "${cflags_var} = ${!cflags_var}"
echo "${ldflags_var} = ${!ldflags_var}"
echo "---"
unset CFLAGS
unset LDFLAGS
unset CXXFLAGS
# workaround the cc-rs mixing CFLAGS for host and target.
# https://github.com/rust-lang/cc-rs/issues/1469
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" \
CXXFLAGS_${RUST_BUILD//-/_}="${CXXFLAGS_host}" \
LDFLAGS_${RUST_BUILD//-/_}="${LDFLAGS_host}" \
CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}" \
CXXFLAGS_${RUST_TARGET//-/_}="${CXXFLAGS}" \
LDFLAGS_${RUST_TARGET//-/_}="${LDFLAGS}" \
CFLAGS="" CXXFLAGS="" LDFLAGS=""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-package This PR adds a new package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants