shithub: scc

Download patch

ref: f48467f6f824135bf4fc6fa256a3a9d50ae077d7
parent: 81e3671bc0195954d80cb3a212009b94f33cf49f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Jan 25 07:28:33 EST 2018

[as] Run sort under the C locale

POSIX sort is so stupid that it compares using the current locale.
It means that the order of the instructions depend of the locale.

--- a/as/target/z80.mk
+++ b/as/target/z80.mk
@@ -4,6 +4,6 @@
 $(Z80_LST): target/x80/proc.h
 
 target/x80/z80tbl.c: gentbl.awk target/x80/x80.dat target/x80/rules.dat
-	./gentbl.sh -f x80 -c z80
+	LC_ALL=C ./gentbl.sh -f x80 -c z80
 
 OBJ-z80 = $(OBJ) $(Z80_LST)