Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
499e53a9
Kaydet (Commit)
499e53a9
authored
Mar 06, 2013
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make debugging / cache better and kill a warning.
üst
7980049c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
module-deps.pl
bin/module-deps.pl
+11
-4
No files found.
bin/module-deps.pl
Dosyayı görüntüle @
499e53a9
...
@@ -11,8 +11,11 @@ sub read_deps()
...
@@ -11,8 +11,11 @@ sub read_deps()
my
$invalid_tolerance
=
100
;
my
$invalid_tolerance
=
100
;
my
$line_count
=
0
;
my
$line_count
=
0
;
my
%
deps
;
my
%
deps
;
open
(
$p
,
"ENABLE_PRINT_DEPS=1 $gnumake -n -f $makefile_build all|"
)
||
die
"can't launch make: $!"
;
if
(
defined
$ENV
{
DEP_CACHE_FILE
})
{
# open ($p, "/tmp/deps") || die "can't read deps: $!";
open
(
$p
,
$ENV
{
DEP_CACHE_FILE
})
||
die
"can't read deps from cache: $!"
;
}
else
{
open
(
$p
,
"ENABLE_PRINT_DEPS=1 $gnumake -n -f $makefile_build all|"
)
||
die
"can't launch make: $!"
;
}
$|
=
1
;
$|
=
1
;
print
STDERR
"reading deps "
;
print
STDERR
"reading deps "
;
while
(
<
$p
>
)
{
while
(
<
$p
>
)
{
...
@@ -94,6 +97,7 @@ sub has_child_dep($$$)
...
@@ -94,6 +97,7 @@ sub has_child_dep($$$)
}
}
# flatten deps recursively into a single hash per module
# flatten deps recursively into a single hash per module
sub
build_flat_dep_hash
($$);
sub
build_flat_dep_hash
($$)
sub
build_flat_dep_hash
($$)
{
{
my
(
$tree
,
$name
)
=
@_
;
my
(
$tree
,
$name
)
=
@_
;
...
@@ -115,8 +119,11 @@ sub build_flat_dep_hash($$)
...
@@ -115,8 +119,11 @@ sub build_flat_dep_hash($$)
}
}
$node
->
{
flat_deps
}
=
\%
flat_deps
;
$node
->
{
flat_deps
}
=
\%
flat_deps
;
# print "node '$name' has flat-deps: '" . join(',', keys %flat_deps) . "' " .
# useful debugging ...
# "vs. '" . join(',', @{$node->{deps}}) . "'\n";
if
(
defined
$ENV
{
DEP_CACHE_FILE
})
{
print
"node '$name' has flat-deps: '"
.
join
(
','
,
keys
%
flat_deps
)
.
"' "
.
"vs. '"
.
join
(
','
,
@
{
$node
->
{
deps
}})
.
"'\n"
;
}
}
}
# many modules depend on vcl + sal, but vcl depends on sal
# many modules depend on vcl + sal, but vcl depends on sal
...
...
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