Skip to content

Instantly share code, notes, and snippets.

@leon-anavi
Created August 29, 2016 19:08
Show Gist options
  • Select an option

  • Save leon-anavi/ec806ffaf7bfaf263ee1352fcfe883c5 to your computer and use it in GitHub Desktop.

Select an option

Save leon-anavi/ec806ffaf7bfaf263ee1352fcfe883c5 to your computer and use it in GitHub Desktop.
rust 1.8.0 for i586
mk/main.mk
# Don't trust stage0, be explicit about libraries
# TODO: rather than specifying sysroot, we really want to tell which libdir to
# use (ie: the dir containing 'rustlib'). This would allow us to avoid
# passing the '-L' options.
ifeq ($(1),0)
#RUSTFLAGS_S_$(1)_T_$(2)_H_$(3) += --sysroot "$$(HROOT$(1)_H_$(3))" \
# -L "$$(TLIB$(1)_T_$(2)_H_$(3))"
endif
leon@leon-desktop-G1:/media/storage/rust-i586/rust8$ git diff src/etc/snapshot.py
diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py
index 81babf9..7d8855a 100644
--- a/src/etc/snapshot.py
+++ b/src/etc/snapshot.py
@@ -114,7 +114,7 @@ def get_kernel(triple):
def get_cpu(triple):
arch = triple.split('-')[0]
- if arch == "i686":
+ if arch == "i686" or arch == "i586":
return "i386"
return arch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment