Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
llvm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
llvm-watermarker
Commits
8feafd03
Commit
8feafd03
authored
Nov 20, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
コマンドのバージョン指定を削除
parent
0e179726
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Makefile
Makefile
+3
-3
Makefile
example/8cc/Makefile
+1
-1
Makefile
example/fizzbuzz/Makefile
+3
-3
No files found.
Makefile
View file @
8feafd03
LLVM_INCLUDE_DIRS
:=
$(
shell
llvm-config
-6.0
--includedir
)
LLVM_INCLUDE_DIRS
:=
$(
shell
llvm-config
--includedir
)
CXX
:=
g++
CXX
:=
g++
...
@@ -12,8 +12,8 @@ CXXFLAGS := \
...
@@ -12,8 +12,8 @@ CXXFLAGS := \
-fPIC
-fPIC
LDFLAGS
:=
\
LDFLAGS
:=
\
$(
shell
llvm-config
-6.0
--ldflags
)
\
$(
shell
llvm-config
--ldflags
)
\
$(
shell
llvm-config
-6.0
--libs
)
$(
shell
llvm-config
--libs
)
.PHONY
:
all test example clean
.PHONY
:
all test example clean
...
...
example/8cc/Makefile
View file @
8feafd03
...
@@ -67,7 +67,7 @@ test/stage1-wm/%.o: test/stage1-wm/%-wm.ll
...
@@ -67,7 +67,7 @@ test/stage1-wm/%.o: test/stage1-wm/%-wm.ll
clang
-o
$@
-c
$<
clang
-o
$@
-c
$<
test/stage1-wm/%-wm.ll
:
test/stage1-wm/%.ll
test/stage1-wm/%-wm.ll
:
test/stage1-wm/%.ll
opt
-6.0
-load
../../nykk.so
-O2
-block-wm
-watermark
=
${
WATERMARK
}
-S
-o
$@
$<
2>
${
@
:%.ll
=%-stderr.txt
}
opt
-load
../../nykk.so
-O2
-block-wm
-watermark
=
${
WATERMARK
}
-S
-o
$@
$<
2>
${
@
:%.ll
=%-stderr.txt
}
test/stage1-wm/%.ll
:
8cc/%.c
test/stage1-wm/%.ll
:
8cc/%.c
@
mkdir
-p
${
@D
}
@
mkdir
-p
${
@D
}
...
...
example/fizzbuzz/Makefile
View file @
8feafd03
...
@@ -23,11 +23,11 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2}
...
@@ -23,11 +23,11 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2}
clang
-emit-llvm
-S
-O2
-o
$@
$<
clang
-emit-llvm
-S
-O2
-o
$@
$<
%-0.ll
:
%.ll
%-0.ll
:
%.ll
opt
-6.0
-load
../../nykk.so
-block-wm
-watermark
=
0
-S
-o
$@
$<
opt
-load
../../nykk.so
-block-wm
-watermark
=
0
-S
-o
$@
$<
%-1.ll
:
%.ll
%-1.ll
:
%.ll
opt
-6.0
-load
../../nykk.so
-block-wm
-watermark
=
1
-S
-o
$@
$<
opt
-load
../../nykk.so
-block-wm
-watermark
=
1
-S
-o
$@
$<
%-2.ll
:
%.ll
%-2.ll
:
%.ll
opt
-6.0
-load
../../nykk.so
-block-wm
-watermark
=
2
-S
-o
$@
$<
opt
-load
../../nykk.so
-block-wm
-watermark
=
2
-S
-o
$@
$<
%
:
%.ll
%
:
%.ll
clang
-o
$@
$<
clang
-o
$@
$<
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment