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
fd351396
Commit
fd351396
authored
Dec 28, 2018
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cargoプロジェクトへの電子透かしの埋め込みと埋め込み結果の集計スクリプトを追加
parent
f91af3cd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
4 deletions
+23
-4
Makefile
example/numguess-rs/Makefile
+19
-4
aggregate.zsh
scripts/aggregate.zsh
+4
-0
No files found.
example/numguess-rs/Makefile
View file @
fd351396
...
...
@@ -6,14 +6,29 @@ LDFLAGS := \
-ldl
\
-ljemalloc
all
:
${BIN_DIR}/numguess.out
all
:
${BIN_DIR}/numguess.out
${BIN_DIR}/numguess-wm.out
test
:
${BIN_DIR}/numguess.out
test
:
${BIN_DIR}/numguess.out
${BIN_DIR}/numguess-wm.out
clean
::
cargo clean
${BIN_DIR}/
numguess.out
:
${BIN_DIR}/
%.out
:
${OBJ_DIR}/%.ll ${OBJ_DIR}/probestack.o
@
mkdir
-p
${
@D
}
clang
-o
$@
$^
${
LDFLAGS
}
${OBJ_DIR}/numguess.ll
:
target/release/deps/*.ll
@
mkdir
-p
${
@D
}
cp
$<
$@
target/release/deps/*.ll
:
cargo rustc
--release
-v
--
-Clto
--emit
=
llvm-ir
clang
-o
$@
target/release/deps/
*
.ll probestack.s
${
LDFLAGS
}
${OBJ_DIR}/numguess-wm.ll
:
${OBJ_DIR}/numguess.ll
@
mkdir
-p
${
@D
}
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-block-wm
-watermark
=
rust-project
-S
-o
${
@
:%-wm.ll
=%-block.ll
}
$<
2>
${
@
:%-wm.ll
=%-block-wm.txt
}
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-inst-wm
-watermark
=
rust-project
-S
-o
$@
${
@
:%-wm.ll
=%-block.ll
}
2>
${
@
:%-wm.ll
=%-inst-wm.txt
}
${OBJ_DIR}/probestack.o
:
probestack.s
@
mkdir
-p
${
@D
}
clang
-o
$@
-c
$<
scripts/aggregate.zsh
View file @
fd351396
...
...
@@ -50,6 +50,8 @@ echo "==== zlib block-wm ===="
h1 obj/example/zlib/zlib-block-wm/
*
-block-wm
.txt
echo
"==== fizzbuzz-rs block-wm ===="
h1 obj/example/fizzbuzz-rs/
*
-block-wm
.txt
echo
"==== numguess-rs block-wm ===="
h1 obj/example/numguess-rs/
*
-block-wm
.txt
echo
"==== 8cc inst-wm ===="
h2 obj/example/8cc/stage1-wm/
*
-inst-wm
.txt
...
...
@@ -57,3 +59,5 @@ echo "==== zlib inst-wm ===="
h2 obj/example/zlib/zlib-inst-wm/
*
-inst-wm
.txt
echo
"==== fizzbuzz-rs inst-wm ===="
h2 obj/example/fizzbuzz-rs/
*
-inst-wm
.txt
echo
"==== numguess-rs inst-wm ===="
h2 obj/example/numguess-rs/
*
-inst-wm
.txt
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