Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ps1 activations #87

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions recipe/install_activation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ cp "${SRC_DIR}"/deactivate-binutils.sh ${PREFIX}/etc/conda/deactivate.d/deactiva
if [[ "$target_platform" == "win-"* ]]; then
cp "${SRC_DIR}"/activate-binutils.bat ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.bat
cp "${SRC_DIR}"/deactivate-binutils.bat ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.bat
cp "${SRC_DIR}"/activate-binutils.ps1 ${PREFIX}/etc/conda/activate.d/activate-${PKG_NAME}.ps1
cp "${SRC_DIR}"/deactivate-binutils.ps1 ${PREFIX}/etc/conda/deactivate.d/deactivate-${PKG_NAME}.ps1
fi
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
- patches/0001-fallback-sysroot.diff

build:
number: 3
number: 4
skip: true # [win64 and cross_target_platform != "win-64"]
detect_binary_files_with_prefix: false

Expand Down
56 changes: 56 additions & 0 deletions recipe/scripts/activate-binutils.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
$Env:CONDA_BACKUP_ADDR2LINE=$Env:ADDR2LINE
$Env:ADDR2LINE=@CHOST@-addr2line.exe

$Env:CONDA_BACKUP_AR=$Env:AR
$Env:AR=@CHOST@-ar.exe

$Env:CONDA_BACKUP_AS=$Env:AS
$Env:AS=@CHOST@-as.exe

$Env:CONDA_BACKUP_CXXFILT=$Env:CXXFILT
$Env:CXXFILT=@CHOST@-c++filt.exe

$Env:CONDA_BACKUP_ELFEDIT=$Env:ELFEDIT
$Env:ELFEDIT=@CHOST@-elfedit.exe

$Env:CONDA_BACKUP_GPROF=$Env:GPROF
$Env:GPROF=@CHOST@-gprof.exe

$Env:CONDA_BACKUP_LD=$Env:LD
$Env:LD=@CHOST@-ld.exe

$Env:CONDA_BACKUP_NM=$Env:NM
$Env:NM=@CHOST@-nm.exe

$Env:CONDA_BACKUP_OBJCOPY=$Env:OBJCOPY
$Env:OBJCOPY=@CHOST@-objcopy.exe

$Env:CONDA_BACKUP_OBJDUMP=$Env:OBJDUMP
$Env:OBJDUMP=@CHOST@-objdump.exe

$Env:CONDA_BACKUP_RANLIB=$Env:RANLIB
$Env:RANLIB=@CHOST@-ranlib.exe

$Env:CONDA_BACKUP_READELF=$Env:READELF
$Env:READELF=@CHOST@-readelf.exe

$Env:CONDA_BACKUP_SIZE=$Env:SIZE
$Env:SIZE=@CHOST@-size.exe

$Env:CONDA_BACKUP_STRINGS=$Env:STRINGS
$Env:STRINGS=@CHOST@-strings.exe

$Env:CONDA_BACKUP_STRIP=$Env:STRIP
$Env:STRIP=@CHOST@-strip.exe

$Env:CONDA_BACKUP_DLLTOOL=$Env:DLLTOOL
$Env:DLLTOOL=@CHOST@-dlltool.exe

$Env:CONDA_BACKUP_DLLWRAP=$Env:DLLWRAP
$Env:DLLWRAP=@CHOST@-dllwrap.exe

$Env:CONDA_BACKUP_WINDMC=$Env:WINDMC
$Env:WINDMC=@CHOST@-windmc.exe

$Env:CONDA_BACKUP_WINDRES=$Env:WINDRES
$Env:WINDRES=@CHOST@-windres.exe
56 changes: 56 additions & 0 deletions recipe/scripts/deactivate-binutils.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
$Env:ADDR2LINE=$Env:CONDA_BACKUP_ADDR2LINE
$Env:CONDA_BACKUP_ADDR2LINE=$null

$Env:AR=$Env:CONDA_BACKUP_AR
$Env:CONDA_BACKUP_AR=$null

$Env:AS=$Env:CONDA_BACKUP_AS
$Env:CONDA_BACKUP_AS=$null

$Env:CXXFILT=$Env:CONDA_BACKUP_CXXFILT
$Env:CONDA_BACKUP_CXXFILT=$null

$Env:ELFEDIT=$Env:CONDA_BACKUP_ELFEDIT
$Env:CONDA_BACKUP_ELFEDIT=$null

$Env:GPROF=$Env:CONDA_BACKUP_GPROF
$Env:CONDA_BACKUP_GPROF=$null

$Env:LD=$Env:CONDA_BACKUP_LD
$Env:CONDA_BACKUP_LD=$null

$Env:NM=$Env:CONDA_BACKUP_NM
$Env:CONDA_BACKUP_NM=$null

$Env:OBJCOPY=$Env:CONDA_BACKUP_OBJCOPY
$Env:CONDA_BACKUP_OBJCOPY=$null

$Env:OBJDUMP=$Env:CONDA_BACKUP_OBJDUMP
$Env:CONDA_BACKUP_OBJDUMP=$null

$Env:RANLIB=$Env:CONDA_BACKUP_RANLIB
$Env:CONDA_BACKUP_RANLIB=$null

$Env:READELF=$Env:CONDA_BACKUP_READELF
$Env:CONDA_BACKUP_READELF=$null

$Env:SIZE=$Env:CONDA_BACKUP_SIZE
$Env:CONDA_BACKUP_SIZE=$null

$Env:STRINGS=$Env:CONDA_BACKUP_STRINGS
$Env:CONDA_BACKUP_STRINGS=$null

$Env:STRIP=$Env:CONDA_BACKUP_STRIP
$Env:CONDA_BACKUP_STRIP=$null

$Env:DLLTOOL=$Env:CONDA_BACKUP_DLLTOOL
$Env:CONDA_BACKUP_DLLTOOL=$null

$Env:DLLWRAP=$Env:CONDA_BACKUP_DLLWRAP
$Env:CONDA_BACKUP_DLLWRAP=$null

$Env:WINDMC=$Env:CONDA_BACKUP_WINDMC
$Env:CONDA_BACKUP_WINDMC=$null

$Env:WINDRES=$Env:CONDA_BACKUP_WINDRES
$Env:CONDA_BACKUP_WINDRES=$null