Skip to content

Commit

Permalink
chore: Remove unused RISC-V architecture code
Browse files Browse the repository at this point in the history
  • Loading branch information
suifei committed May 27, 2024
1 parent 0e77d87 commit 9d8470f
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 543 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ clean:
echo "Cleaned up successfully"

lib:
git checkout main
@if [ -d "$(INSTALL_PREFIX)/lib" ] && \
[ -f "$(INSTALL_PREFIX)/lib/libcapstone.a" ] && \
[ -f "$(INSTALL_PREFIX)/lib/libkeystone.a" ]; then \
Expand Down Expand Up @@ -92,6 +93,7 @@ lib:


lib_riscv:
git checkout RISCV32
@if [ -d "$(INSTALL_PREFIX)/lib" ] && \
[ -f "$(INSTALL_PREFIX)/lib/libcapstone.a" ] && \
[ -f "$(INSTALL_PREFIX)/lib/libkeystone.a" ]; then \
Expand Down Expand Up @@ -126,17 +128,19 @@ lib_riscv:
fi

build_riscv:
git checkout RISCV32
@mkdir -p ./build-riscv && \
CGO_ENABLED=1 \
CGO_CFLAGS="$(CGO_CFLAGS)" \
CGO_LDFLAGS="$(CGO_LDFLAGS)" \
fyne package --release --target $(TARGET) --icon ./theme/icons/asm2hex.png -tags build_riscv && \
fyne package --release --target $(TARGET) --icon ./theme/icons/asm2hex.png && \
rm -rf ./build-riscv/$(if $(filter $(PLATFORM),Windows),*.exe,*.app) && \
mv -fv $(if $(filter $(PLATFORM),Windows),*.exe,*.app) ./build-riscv && \
echo "Build completed for $(PLATFORM)"


build:
git checkout main
@mkdir -p ./build && \
CGO_ENABLED=1 \
CGO_CFLAGS="$(CGO_CFLAGS)" \
Expand Down
1 change: 0 additions & 1 deletion archs/arch.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//go:build !build_riscv

package archs

Expand Down
204 changes: 0 additions & 204 deletions archs/arch_riscv.go

This file was deleted.

1 change: 0 additions & 1 deletion archs/utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//go:build !build_riscv

package archs

Expand Down
Loading

0 comments on commit 9d8470f

Please sign in to comment.