Skip to content

Commit a499fd3

Browse files
committed
Remove 'troupec -l' option short-hand
This frees '-l' up to be used for a '--link' later
1 parent 4d73e1f commit a499fd3

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

compiler/app/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ options =
6060
, Option [] ["no-rawopt"] (NoArg NoRawOpt) "disable Raw optimization"
6161
, Option ['v'] ["verbose"] (NoArg Verbose) "verbose output"
6262
, Option ['d'] ["debug"] (NoArg Debug) "debugging information in the .js file"
63-
, Option ['l'] ["lib"] (NoArg LibMode) "compiling a library"
63+
, Option [] ["lib"] (NoArg LibMode) "compiling a library"
6464
, Option ['h'] ["help"] (NoArg Help) "print usage"
6565
, Option ['o'] ["output"] (ReqArg OutputFile "FILE") "output FILE"
6666
]

lib/Makefile

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ COMPILER=../bin/troupec
33
build:
44
mkdir -p out
55
# Standard Library
6-
$(COMPILER) ./Number.trp -l
7-
$(COMPILER) ./List.trp -l
8-
$(COMPILER) ./ListPair.trp -l
9-
$(COMPILER) ./String.trp -l
10-
$(COMPILER) ./Hash.trp -l
11-
$(COMPILER) ./Unit.trp -l
12-
$(COMPILER) ./StencilVector.trp -l
13-
$(COMPILER) ./HashMap.trp -l
14-
$(COMPILER) ./HashSet.trp -l
6+
$(COMPILER) --lib ./Number.trp
7+
$(COMPILER) --lib ./List.trp
8+
$(COMPILER) --lib ./ListPair.trp
9+
$(COMPILER) --lib ./String.trp
10+
$(COMPILER) --lib ./Hash.trp
11+
$(COMPILER) --lib ./Unit.trp
12+
$(COMPILER) --lib ./StencilVector.trp
13+
$(COMPILER) --lib ./HashMap.trp
14+
$(COMPILER) --lib ./HashSet.trp
1515
# Old stuff, here be dragons...
16-
$(COMPILER) ./nsuref.trp -l
17-
$(COMPILER) ./printService.trp -l
18-
$(COMPILER) ./timeout.trp -l
19-
$(COMPILER) ./NetHealth.trp -l
20-
$(COMPILER) ./declassifyutil.trp -l
21-
$(COMPILER) ./stdio.trp -l
22-
$(COMPILER) ./raft.trp -l
23-
$(COMPILER) ./raft_debug.trp -l
24-
$(COMPILER) ./bst.trp -l
25-
$(COMPILER) ./localregistry.trp -l
16+
$(COMPILER) --lib ./nsuref.trp
17+
$(COMPILER) --lib ./printService.trp
18+
$(COMPILER) --lib ./timeout.trp
19+
$(COMPILER) --lib ./NetHealth.trp
20+
$(COMPILER) --lib ./declassifyutil.trp
21+
$(COMPILER) --lib ./stdio.trp
22+
$(COMPILER) --lib ./raft.trp
23+
$(COMPILER) --lib ./raft_debug.trp
24+
$(COMPILER) --lib ./bst.trp
25+
$(COMPILER) --lib ./localregistry.trp
2626

2727
clean:
2828
rm -rf out

trp-rt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ COMPILER=../bin/troupec
33
build:
44
mkdir -p out
55
# Standard Library
6-
$(COMPILER) ./service.trp -l
6+
$(COMPILER) --lib ./service.trp
77

88
clean:
99
rm -rf out

0 commit comments

Comments
 (0)