Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
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
lvzhengyang
git2
Commits
524c1d3c
Commit
524c1d3c
authored
Sep 20, 2017
by
Edward Thomson
Committed by
GitHub
Sep 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4334 from pks-t/pks/reproducible-builds
Reproducible builds
parents
212da30d
d630887b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
CMakeLists.txt
+9
-0
tests/generate.py
+5
-3
No files found.
CMakeLists.txt
View file @
524c1d3c
...
@@ -50,6 +50,9 @@ OPTION( CURL "Use curl for HTTP if available" ON)
...
@@ -50,6 +50,9 @@ OPTION( CURL "Use curl for HTTP if available" ON)
OPTION
(
USE_EXT_HTTP_PARSER
"Use system HTTP_Parser if available"
ON
)
OPTION
(
USE_EXT_HTTP_PARSER
"Use system HTTP_Parser if available"
ON
)
OPTION
(
DEBUG_POOL
"Enable debug pool allocator"
OFF
)
OPTION
(
DEBUG_POOL
"Enable debug pool allocator"
OFF
)
OPTION
(
ENABLE_WERROR
"Enable compilation with -Werror"
OFF
)
OPTION
(
ENABLE_WERROR
"Enable compilation with -Werror"
OFF
)
IF
(
UNIX AND NOT APPLE
)
OPTION
(
ENABLE_REPRODUCIBLE_BUILDS
"Enable reproducible builds"
OFF
)
ENDIF
()
IF
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
IF
(
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Darwin"
)
SET
(
USE_ICONV ON
)
SET
(
USE_ICONV ON
)
...
@@ -222,6 +225,12 @@ IF (MSVC)
...
@@ -222,6 +225,12 @@ IF (MSVC)
SET
(
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
"
${
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
}
"
)
SET
(
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
"
${
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
}
"
)
SET
(
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
"
${
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
}
"
)
SET
(
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
"
${
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
}
"
)
ELSE
()
ELSE
()
IF
(
ENABLE_REPRODUCIBLE_BUILDS
)
SET
(
CMAKE_C_ARCHIVE_CREATE
"<CMAKE_AR> Dqc <TARGET> <LINK_FLAGS> <OBJECTS>"
)
SET
(
CMAKE_C_ARCHIVE_APPEND
"<CMAKE_AR> Dq <TARGET> <LINK_FLAGS> <OBJECTS>"
)
SET
(
CMAKE_C_ARCHIVE_FINISH
"<CMAKE_RANLIB> -D <TARGET>"
)
ENDIF
()
SET
(
CMAKE_C_FLAGS
"-D_GNU_SOURCE
${
CMAKE_C_FLAGS
}
"
)
SET
(
CMAKE_C_FLAGS
"-D_GNU_SOURCE
${
CMAKE_C_FLAGS
}
"
)
MACRO
(
ENABLE_WARNINGS flag
)
MACRO
(
ENABLE_WARNINGS flag
)
...
...
tests/generate.py
View file @
524c1d3c
...
@@ -207,16 +207,18 @@ class TestSuite(object):
...
@@ -207,16 +207,18 @@ class TestSuite(object):
return
False
return
False
with
open
(
output
,
'w'
)
as
data
:
with
open
(
output
,
'w'
)
as
data
:
for
module
in
self
.
modules
.
values
():
modules
=
sorted
(
self
.
modules
.
values
(),
key
=
lambda
module
:
module
.
name
)
for
module
in
modules
:
t
=
Module
.
DeclarationTemplate
(
module
)
t
=
Module
.
DeclarationTemplate
(
module
)
data
.
write
(
t
.
render
())
data
.
write
(
t
.
render
())
for
module
in
self
.
modules
.
values
()
:
for
module
in
modules
:
t
=
Module
.
CallbacksTemplate
(
module
)
t
=
Module
.
CallbacksTemplate
(
module
)
data
.
write
(
t
.
render
())
data
.
write
(
t
.
render
())
suites
=
"static struct clar_suite _clar_suites[] = {"
+
','
.
join
(
suites
=
"static struct clar_suite _clar_suites[] = {"
+
','
.
join
(
Module
.
InfoTemplate
(
module
)
.
render
()
for
module
in
sorted
(
self
.
modules
.
values
(),
key
=
lambda
module
:
module
.
name
)
Module
.
InfoTemplate
(
module
)
.
render
()
for
module
in
modules
)
+
"
\n
};
\n
"
)
+
"
\n
};
\n
"
data
.
write
(
suites
)
data
.
write
(
suites
)
...
...
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