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
e670fe37
Commit
e670fe37
authored
Mar 11, 2021
by
Ed Reel
Committed by
GitHub
Mar 11, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5399 from saltedcoffii/patch-111
Fix mixed triple issue
parents
537e27ca
bc9b7db8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
crew
crew
+1
-0
lib/const.rb
lib/const.rb
+9
-7
No files found.
crew
View file @
e670fe37
...
...
@@ -351,6 +351,7 @@ def const (var)
'CREW_NPROC'
,
'CREW_OPTIONS'
,
'CREW_PREFIX'
,
'CREW_TGT'
,
'CREW_VERSION'
,
'HOME'
,
'LIBC_VERSION'
,
...
...
lib/const.rb
View file @
e670fe37
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.7.1
2
'
CREW_VERSION
=
'1.7.1
3
'
ARCH_ACTUAL
=
`uname -m`
.
strip
# This helps with virtualized builds on aarch64 machines
...
...
@@ -60,14 +60,16 @@ CHROMEOS_RELEASE = `grep CHROMEOS_RELEASE_CHROME_MILESTONE= /etc/lsb-release | c
case
ARCH
when
'aarch64'
,
'armv7l'
CREW_
BUILD
=
'armv7l-cros-linux-gnueabihf'
CREW_
TGT
=
'armv7l-cros-linux-gnueabihf'
when
'i686'
CREW_
BUILD
=
'i686-cros-linux-gnu'
CREW_
TGT
=
'i686-cros-linux-gnu'
when
'x86_64'
CREW_
BUILD
=
'x86_64-cros-linux-gnu'
CREW_
TGT
=
'x86_64-cros-linux-gnu'
end
CREW_OPTIONS
=
"--prefix=
#{
CREW_PREFIX
}
--libdir=
#{
CREW_LIB_PREFIX
}
--mandir=
#{
CREW_MAN_PREFIX
}
--build=
#{
CREW_BUILD
}
--host=
#{
CREW_BUILD
}
--target=
#{
CREW_BUILD
}
--program-prefix='' --program-suffix=''"
CREW_BUILD
=
`
#{
CREW_PREFIX
}
/share/automake-*/config.guess`
.
strip
# strip to remove newline
CREW_OPTIONS
=
"--prefix=
#{
CREW_PREFIX
}
--libdir=
#{
CREW_LIB_PREFIX
}
--mandir=
#{
CREW_MAN_PREFIX
}
--build=
#{
CREW_BUILD
}
--host=
#{
CREW_TGT
}
--target=
#{
CREW_TGT
}
--program-prefix='' --program-suffix=''"
CREW_MESON_OPTIONS
=
"-Dprefix=
#{
CREW_PREFIX
}
-Dlibdir=
#{
CREW_LIB_PREFIX
}
-Dmandir=
#{
CREW_MAN_PREFIX
}
-Dbuildtype=release -Dc_args='-fuse-ld=lld -pipe' -Dcpp_args='-fuse-ld=lld -pipe'"
CREW_MESON_LTO_OPTIONS
=
"-Dprefix=
#{
CREW_PREFIX
}
-Dlibdir=
#{
CREW_LIB_PREFIX
}
-Dmandir=
#{
CREW_MAN_PREFIX
}
-Dbuildtype=release -Db_lto=true -Dcpp_args='-fuse-ld=gold -pipe' -Dc_args='-fuse-ld=gold -pipe'"
...
...
@@ -75,6 +77,6 @@ CREW_MESON_LTO_OPTIONS = "-Dprefix=#{CREW_PREFIX} -Dlibdir=#{CREW_LIB_PREFIX} -D
# This is often considered deprecated. See discussio at https://gitlab.kitware.com/cmake/cmake/-/issues/18640
# and also https://bugzilla.redhat.com/show_bug.cgi?id=1425064
# Let's have two CREW_CMAKE_OPTIONS since this avoids the logic in the recipe file.
CREW_CMAKE_OPTIONS
=
"-DCMAKE_INSTALL_PREFIX=
#{
CREW_PREFIX
}
-DCMAKE_LIBRARY_PATH=
#{
CREW_LIB_PREFIX
}
-DCMAKE_BUILD_TYPE=Release --build=
#{
CREW_BUILD
}
--host=
#{
CREW_
BUILD
}
--target=
#{
CREW_BUILD
}
"
CREW_CMAKE_OPTIONS
=
"-DCMAKE_INSTALL_PREFIX=
#{
CREW_PREFIX
}
-DCMAKE_LIBRARY_PATH=
#{
CREW_LIB_PREFIX
}
-DCMAKE_BUILD_TYPE=Release --build=
#{
CREW_BUILD
}
--host=
#{
CREW_
TGT
}
--target=
#{
CREW_TGT
}
"
CREW_LIB_SUFFIX
=
if
ARCH
==
'x86_64'
then
'64'
else
''
end
CREW_CMAKE_LIBSUFFIX_OPTIONS
=
"-DCMAKE_INSTALL_PREFIX=
#{
CREW_PREFIX
}
-DCMAKE_LIBRARY_PATH=
#{
CREW_LIB_PREFIX
}
-DLIB_SUFFIX=
#{
CREW_LIB_SUFFIX
}
-DCMAKE_BUILD_TYPE=Release --build=
#{
CREW_BUILD
}
--host=
#{
CREW_
BUILD
}
--target=
#{
CREW_BUILD
}
"
CREW_CMAKE_LIBSUFFIX_OPTIONS
=
"-DCMAKE_INSTALL_PREFIX=
#{
CREW_PREFIX
}
-DCMAKE_LIBRARY_PATH=
#{
CREW_LIB_PREFIX
}
-DLIB_SUFFIX=
#{
CREW_LIB_SUFFIX
}
-DCMAKE_BUILD_TYPE=Release --build=
#{
CREW_BUILD
}
--host=
#{
CREW_
TGT
}
--target=
#{
CREW_TGT
}
"
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