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
157148f4
Commit
157148f4
authored
Jan 11, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
リリースビルド時のコンパイルフラグを変更
parent
709d34a7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
Makefile
example/8cc/Makefile
+4
-2
Makefile
example/fizzbuzz/Makefile
+1
-1
Makefile
example/zlib/Makefile
+1
-0
No files found.
example/8cc/Makefile
View file @
157148f4
...
@@ -5,11 +5,13 @@ WATERMARK := 77
...
@@ -5,11 +5,13 @@ WATERMARK := 77
CC
:=
clang
CC
:=
clang
CFLAGS
:=
\
CFLAGS
:=
\
-O2
\
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
\
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
\
-
O2
-
DNDEBUG
8CCFLAGS
:=
\
8CCFLAGS
:=
\
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
-DBUILD_DIR
=
"
\"
$$
PWD/8cc
\"
"
\
-DNDEBUG
LDFLAGS
:=
\
LDFLAGS
:=
\
-no-pie
-no-pie
...
...
example/fizzbuzz/Makefile
View file @
157148f4
...
@@ -26,7 +26,7 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2} ${LLS_3}
...
@@ -26,7 +26,7 @@ ${BINS}: ${LLS} ${LLS_0} ${LLS_1} ${LLS_2} ${LLS_3}
${OBJ_DIR}/%.ll
:
%.c
${OBJ_DIR}/%.ll
:
%.c
@
mkdir
-p
${
@D
}
@
mkdir
-p
${
@D
}
clang
-emit-llvm
-S
-O2
-o
$@
$<
clang
-emit-llvm
-S
-
DNDEBUG
-
O2
-o
$@
$<
%-0.ll
:
%.ll
%-0.ll
:
%.ll
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-block-wm
-watermark
=
0
-S
-o
$@
$<
2>
${
@
:.ll
=.txt
}
opt
-load
=
${
ROOT
}
/bin/src/nykk.so
-block-wm
-watermark
=
0
-S
-o
$@
$<
2>
${
@
:.ll
=.txt
}
...
...
example/zlib/Makefile
View file @
157148f4
...
@@ -6,6 +6,7 @@ CC := clang
...
@@ -6,6 +6,7 @@ CC := clang
CXX
:=
clang++
CXX
:=
clang++
CFLAGS
:=
\
CFLAGS
:=
\
-DNDEBUG
\
-D_LARGEFILE64_SOURCE
=
1
\
-D_LARGEFILE64_SOURCE
=
1
\
-DHAVE_HIDDEN
\
-DHAVE_HIDDEN
\
-O2
-O2
...
...
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