Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
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
张蕾
Geth-Modification
Commits
1cf2ee45
Commit
1cf2ee45
authored
Mar 29, 2017
by
Felix Lange
Committed by
GitHub
Mar 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: work around cgo linker issue on macOS 10.12.4 (#13849)
Fixes #3792 by stripping debug symbols.
parent
baf20010
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
ci.go
build/ci.go
+11
-3
No files found.
build/ci.go
View file @
1cf2ee45
...
...
@@ -217,9 +217,16 @@ func doInstall(cmdline []string) {
}
func
buildFlags
(
env
build
.
Environment
)
(
flags
[]
string
)
{
// Set gitCommit constant via link-time assignment.
var
ld
[]
string
if
env
.
Commit
!=
""
{
flags
=
append
(
flags
,
"-ldflags"
,
"-X main.gitCommit="
+
env
.
Commit
)
ld
=
append
(
ld
,
"-X"
,
"main.gitCommit="
+
env
.
Commit
)
}
if
runtime
.
GOOS
==
"darwin"
{
ld
=
append
(
ld
,
"-s"
)
}
if
len
(
ld
)
>
0
{
flags
=
append
(
flags
,
"-ldflags"
,
strings
.
Join
(
ld
,
" "
))
}
return
flags
}
...
...
@@ -266,6 +273,7 @@ func doTest(cmdline []string) {
coverage
=
flag
.
Bool
(
"coverage"
,
false
,
"Whether to record code coverage"
)
)
flag
.
CommandLine
.
Parse
(
cmdline
)
env
:=
build
.
Env
()
packages
:=
[]
string
{
"./..."
}
if
len
(
flag
.
CommandLine
.
Args
())
>
0
{
...
...
@@ -279,7 +287,7 @@ func doTest(cmdline []string) {
spellcheck
(
packages
)
}
// Run the actual tests.
gotest
:=
goTool
(
"test"
)
gotest
:=
goTool
(
"test"
,
buildFlags
(
env
)
...
)
// Test a single package at a time. CI builders are slow
// and some tests run into timeouts under load.
gotest
.
Args
=
append
(
gotest
.
Args
,
"-p"
,
"1"
)
...
...
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