Skip to content

Commit ea37de4

Browse files
committed
Remove emscripten support
1 parent 5e3c059 commit ea37de4

16 files changed

+3
-269
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ common_OBJECTS = common.o param.o $(patsubst %.c,%.o,$(notdir $(wildcard $(OS_PA
3131
shared_OBJECTS = common.o
3232
tas_OBJECTS = $(common_OBJECTS) asmif.o asm.o obj.o parser.o lexer.o
3333
tsim_OBJECTS = $(common_OBJECTS) simif.o asm.o obj.o plugin.o \
34-
$(DEVOBJS) sim.o emscripten.o
34+
$(DEVOBJS) sim.o
3535
tld_OBJECTS = $(common_OBJECTS) obj.o
3636

3737
ifeq ($(USE_OWN_SEARCH),1)

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**tenyr** is a 32-bit computer architecture and computing environment that
88
focuses on simplicity of design and implementation. **tenyr**'s tools run on
9-
Mac, \*nix, Windows, and node.js via [emscripten]. **tenyr**'s highly portable
9+
Mac, \*nix, and Windows on multiple architectures. **tenyr**'s highly portable
1010
Verilog hardware definition has been demonstrated on a Lattice ECP5 FPGA with
1111
the [ULX3S] development board, and on a Xilinx Spartan6 FPGA with the [Nexys3]
1212
development board.
@@ -29,6 +29,5 @@ development board.
2929

3030
**tenyr**'s documentation is [a wiki](https://github.com/kulp/tenyr/wiki), and it keeps a [changelog](Changelog.md) from v0.9.4 onward.
3131

32-
[emscripten]: https://github.com/emscripten-core/emscripten
3332
[ULX3S]: https://ulx3s.github.io
3433
[Nexys3]: https://reference.digilentinc.com/programmable-logic/nexys-3/

mk/common.mk

-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ endif
3434
ARCH := $(shell uname -m)
3535
ifeq ($(PLATFORM),mingw)
3636
OS := Win32
37-
else ifeq ($(PLATFORM),emscripten)
38-
OS := emscripten
3937
else
4038
OS := $(shell uname -s)
4139
endif

mk/misc.mk

-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ check_args_specific_tsim: check_args_specific_%: %$(EXE_SUFFIX) check_args_speci
148148
$($*) -d -ftext - < /dev/null 2>&1 | $(GREP) "executed: 1" && $(MAKESTEP) " ... stdin accepted for input ok"
149149
[[ "`$($*) -ftext -vv - <<<-1 2>&1 | wc -c`" < 67 ]] && $(MAKESTEP) " ... debug output is 66 columns or shorter"
150150
$($*) -@ $(TOP)/test/misc/long.rcp $(TOP)/test/misc/obj/empty.to 2>&1 | $(GREP) "handling" && $(MAKESTEP) " ... plugins cap ok"
151-
$(if $(findstring emscripten,$(PLATFORM)),,(! $($*) -remscript - &> /dev/null ) && $(MAKESTEP) " ... emscripten recipe rejected ok")
152151

153152
check_args_specific_tsim_plugins: $(TOP)/test/misc/deref.texe
154153
check_args_specific_tsim_plugins: tsim$(EXE_SUFFIX)

mk/os/rules/emscripten.mk

-25
This file was deleted.

mk/os/vars/emscripten.mk

-53
This file was deleted.

src/lsearch.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Fake lsearch for emscripten support since emscripten doesn't have one
1+
// Provides lsearch for platforms that lack one.
22
#include <stddef.h>
33
#include <stdlib.h>
44
#include <string.h>

src/os/default/emscripten.c

-14
This file was deleted.

src/os/emscripten/dirname.js

-4
This file was deleted.

src/os/emscripten/em.h

-9
This file was deleted.

src/os/emscripten/emscripten.c

-48
This file was deleted.

src/os/emscripten/findself.c

-15
This file was deleted.

src/os/emscripten/open.c

-26
This file was deleted.

src/os/emscripten/pre.js

-42
This file was deleted.

src/os/emscripten/preamble.c

-25
This file was deleted.

src/tsim.c

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
int recipe_emscript(struct sim_state *s); // linked in externally
2525

2626
#define RECIPES(_) \
27-
_(emscript , "change behaviour to use an event loop for emscripten") \
2827
_(jit , "use a JIT compiler (usually faster, but no -v supported)") \
2928
_(plugin , "load plugins specified through param mechanism") \
3029
_(prealloc , "preallocate memory (higher memory footprint, maybe faster)") \

0 commit comments

Comments
 (0)