Skip to content

Commit c0aa72a

Browse files
committed
mcpp submodule
1 parent c06c6a1 commit c0aa72a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "images"]
55
path = images
66
url = https://github.com/copy/images/
7+
[submodule "mcpp"]
8+
path = mcpp
9+
url = [email protected]:h8liu/mcpp.git

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
CLOSURE=../closure-compiler/compiler.jar
2-
CPP=cpp
2+
CPP=mcpp/src/mcpp
33

44

55
all: v86_all.js
66
browser: v86_all.js
77
node: v86_node.js
88

99
src/cpu.js: src/*.macro.js
10-
# build cpu.macro.js using cpp
11-
$(CPP) -P -undef -Wundef -std=c99 -nostdinc -Wtrigraphs -fdollars-in-identifiers -C src/cpu.macro.js src/cpu.js
12-
13-
10+
# build cpu.macro.js using mcpp
11+
mcpp/src/mcpp -a -C -P -o src/cpu.js src/cpu.macro.js
1412

1513
# Used for nodejs builds and in order to profile code.
1614
# `debug` gives identifiers a readable name, make sure it doesn't have any side effects.

mcpp

Submodule mcpp added at ea453ac

0 commit comments

Comments
 (0)