Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
4437d66f
Commit
4437d66f
authored
Jan 05, 2021
by
satmandu
Committed by
GitHub
Jan 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add LTO meson option (#4883)
* Add LTO meson option * add const to crew * Update const.rb
parent
a7695b51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
crew
crew
+1
-0
lib/const.rb
lib/const.rb
+3
-2
No files found.
crew
View file @
4437d66f
...
...
@@ -325,6 +325,7 @@ def const (var)
'CREW_LIB_PREFIX'
,
'CREW_LIB_SUFFIX'
,
'CREW_MAN_PREFIX'
,
'CREW_MESON_LTO_OPTIONS'
,
'CREW_MESON_OPTIONS'
,
'CREW_NOT_COMPRESS'
,
'CREW_NOT_STRIP'
,
...
...
lib/const.rb
View file @
4437d66f
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.5.
4
'
CREW_VERSION
=
'1.5.
5
'
ARCH_ACTUAL
=
`uname -m`
.
strip
# This helps with virtualized builds on aarch64 machines
...
...
@@ -68,7 +68,8 @@ when 'x86_64'
end
CREW_OPTIONS
=
"--prefix=
#{
CREW_PREFIX
}
--libdir=
#{
CREW_LIB_PREFIX
}
--mandir=
#{
CREW_MAN_PREFIX
}
--build=
#{
CREW_BUILD
}
--host=
#{
CREW_BUILD
}
--target=
#{
CREW_BUILD
}
"
CREW_MESON_OPTIONS
=
"-Dprefix=
#{
CREW_PREFIX
}
-Dlibdir=
#{
CREW_LIB_PREFIX
}
-Dmandir=
#{
CREW_MAN_PREFIX
}
-Dbuildtype=release -Dc_args='-fuse-ld=lld'"
CREW_MESON_OPTIONS
=
"-Dprefix=
#{
CREW_PREFIX
}
-Dlibdir=
#{
CREW_LIB_PREFIX
}
-Dmandir=
#{
CREW_MAN_PREFIX
}
-Dbuildtype=release -Dc_args='-fuse-ld=lld' -Dcpp_args='-fuse-ld=lld'"
CREW_MESON_LTO_OPTIONS
=
"-Dprefix=
#{
CREW_PREFIX
}
-Dlibdir=
#{
CREW_LIB_PREFIX
}
-Dmandir=
#{
CREW_MAN_PREFIX
}
-Dbuildtype=release -Dcpp_args='-flto -fuse-ld=gold' -Dcpp_link_args='-flto' -Dc_args='-flto -fuse-ld=gold' -Dc_link_args='-flto'"
# Cmake sometimes wants to use LIB_SUFFIX to install libs in LIB64, so specify such for x86_64
# This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640
...
...
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