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
15beae5c
Commit
15beae5c
authored
May 17, 2021
by
satmandu
Committed by
GitHub
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccache 4.3 (#5793)
parent
264faeff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
packages/ccache.rb
packages/ccache.rb
+30
-30
No files found.
packages/ccache.rb
View file @
15beae5c
...
...
@@ -3,24 +3,24 @@ require 'package'
class
Ccache
<
Package
description
'Compiler cache that speeds up recompilation by caching previous compilations'
homepage
'https://ccache.samba.org/'
@_ver
=
'4.
2.1
'
version
"
#{
@_ver
}
-1"
@_ver
=
'4.
3
'
version
@_ver
license
'GPL-3 and LGPL-3'
compatibility
'all'
source_url
"https://github.com/ccache/ccache/releases/download/v
#{
@_ver
}
/ccache-
#{
@_ver
}
.tar.xz"
source_sha256
'
9d6ba1cdefdc690401f404b747d81a9a1802b17af4235815866b7620d980477e
'
source_sha256
'
504a0f2184465c306826f035b4bc00bae7500308d6af4abbfb50e33a694989b4
'
binary_url
({
aarch64:
'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.
2.1-1_armv7l/ccache-4.2.1-1-chromeos-armv7l.tar.
xz'
,
armv7l:
'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.
2.1-1_armv7l/ccache-4.2.1-1-chromeos-armv7l.tar.
xz'
,
i686:
'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.
2.1-1_i686/ccache-4.2.1-1-chromeos-i686.tar.
xz'
,
x86_64:
'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.
2.1-1_x86_64/ccache-4.2.1-1-chromeos-x86_64.tar.
xz'
aarch64:
'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.
3_armv7l/ccache-4.3-chromeos-armv7l.tp
xz'
,
armv7l:
'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.
3_armv7l/ccache-4.3-chromeos-armv7l.tp
xz'
,
i686:
'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.
3_i686/ccache-4.3-chromeos-i686.tp
xz'
,
x86_64:
'https://gitlab.com/api/v4/projects/26210301/packages/generic/ccache/4.
3_x86_64/ccache-4.3-chromeos-x86_64.tp
xz'
})
binary_sha256
({
aarch64:
'
4198dda721970ec84c1a02fcd792cbf6c54afb8e6d48a8b0b39335030a79ce40
'
,
armv7l:
'
4198dda721970ec84c1a02fcd792cbf6c54afb8e6d48a8b0b39335030a79ce40
'
,
i686:
'
44ad63eb78b3fbe0973276d4724d97e0512ae42fd0b881a6825da8259584a15e
'
,
x86_64:
'
1c063513b2fb098399ad94d8818d04d0eae4569ae1846411d2f421a5567bccca
'
aarch64:
'
abda944f6994dbd35338ad1cf124642f907c9dc37ea218843db6a20a635ccaef
'
,
armv7l:
'
abda944f6994dbd35338ad1cf124642f907c9dc37ea218843db6a20a635ccaef
'
,
i686:
'
2b26758218334508e45aedbea916996dfefc5b414de8a6f1079523954a5f6982
'
,
x86_64:
'
5b2cc2ccebe97eb2212091d478ac5168e4eddf887a1374cca2b5d566f142c40d
'
})
depends_on
'xdg_base'
...
...
@@ -29,7 +29,7 @@ class Ccache < Package
def
self
.
build
Dir
.
mkdir
'build'
Dir
.
chdir
'build'
do
system
"env
CFLAGS='-flto' CXXFLAGS='-flto'
\
system
"env
#{
CREW_ENV_OPTIONS
}
\
cmake -G Ninja \
#{
CREW_CMAKE_OPTIONS
}
\
-DCMAKE_INSTALL_SYSCONFDIR=
#{
CREW_PREFIX
}
/etc \
...
...
@@ -41,24 +41,24 @@ class Ccache < Package
def
self
.
install
system
"DESTDIR=
#{
CREW_DEST_DIR
}
ninja -C build install"
Dir
.
chdir
'build'
do
FileUtils
.
mkdir_p
"
#{
CREW_DEST_LIB_PREFIX
}
/ccache/bin"
system
"for _prog in gcc g++ c++; do
ln -s
#{
CREW_PREFIX
}
/bin/ccache
#{
CREW_DEST_LIB_PREFIX
}
/ccache/bin/$_prog
ln -s
#{
CREW_PREFIX
}
/bin/ccache
#{
CREW_DEST_LIB_PREFIX
}
/ccache/bin/
#{
CREW_TGT
}
-$_prog
done
for _prog in cc clang clang++; do
ln -s
#{
CREW_PREFIX
}
/bin/ccache
#{
CREW_DEST_LIB_PREFIX
}
/ccache/bin/$_prog
done"
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/etc/env.d/"
@ccacheenv
=
<<~
CCACHEEOF
# ccache configuration
if ! [[
\$
PATH == *"ccache/bin"* ]]; then
export PATH="
#{
CREW_LIB_PREFIX
}
/ccache/bin:
\$
PATH"
fi
CCACHEEOF
IO
.
write
(
"
#{
CREW_DEST_PREFIX
}
/etc/env.d/ccache"
,
@ccacheenv
)
FileUtils
.
mkdir_p
"
#{
CREW_DEST_LIB_PREFIX
}
/ccache/bin"
@gcc_bins
=
%w[gcc g++ c++]
@llvm_bins
=
%w[cc clang clang++]
Dir
.
chdir
"
#{
CREW_DEST_LIB_PREFIX
}
/ccache/bin"
do
@gcc_bins
.
each
do
|
bin
|
FileUtils
.
ln_s
'../../../bin/ccache'
,
bin
end
@llvm_bins
.
each
do
|
bin
|
FileUtils
.
ln_s
'../../../bin/ccache'
,
bin
end
end
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/etc/env.d/"
@ccacheenv
=
<<~
CCACHEEOF
# ccache configuration
if ! [[
\$
PATH == *"ccache/bin"* ]]; then
export PATH="
#{
CREW_LIB_PREFIX
}
/ccache/bin:
\$
PATH"
fi
CCACHEEOF
IO
.
write
(
"
#{
CREW_DEST_PREFIX
}
/etc/env.d/ccache"
,
@ccacheenv
)
end
end
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