Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that static libraries contain the compilation unit #45

Closed
Tracked by #12
CohenArthur opened this issue Jul 15, 2021 · 1 comment
Closed
Tracked by #12

Check that static libraries contain the compilation unit #45

CohenArthur opened this issue Jul 15, 2021 · 1 comment
Labels
testing Issue related to unit or functional tests

Comments

@CohenArthur
Copy link
Member

No description provided.

@CohenArthur CohenArthur added the testing Issue related to unit or functional tests label Jul 15, 2021
@CohenArthur
Copy link
Member Author

CohenArthur commented Jul 16, 2021

For now, gccrs and rustc do not add the same amount of objects to a static archive

Output of ar -t target/debug/libstatic_lib.a from rustc:

static_lib-8ba9444bc2e1e17e.4kwik0s0281rmtbp.rcgu.o
static_lib-8ba9444bc2e1e17e.3s9o3u44bdkukjt4.rcgu.o
std-b1047a2788193be4.std.b9wtcb8n-cgu.0.rcgu.o
panic_unwind-e8e399e2092f3b2a.panic_unwind.4wsda5s0-cgu.0.rcgu.o
miniz_oxide-c6b02b522c91c060.miniz_oxide.8suyx5qc-cgu.0.rcgu.o
adler-eaad965909c4200f.adler.4jhznnrz-cgu.0.rcgu.o
object-dca728ac8ed54d87.object.5skt3w44-cgu.0.rcgu.o
addr2line-4b4efaa8c4601753.addr2line.4s3xpjp0-cgu.0.rcgu.o
gimli-d36e07ed2cc56ee4.gimli.5km17kr2-cgu.0.rcgu.o
rustc_demangle-3855d04b1bb40ceb.rustc_demangle.8fxhyhex-cgu.0.rcgu.o
hashbrown-58a065cdff5508a2.hashbrown.8gtrut29-cgu.0.rcgu.o
rustc_std_workspace_alloc-82aeeedcc8d1450a.rustc_std_workspace_alloc.4cd7gtpn-cgu.0.rcgu.o
unwind-5c4d6c9d7595f844.unwind.bbc8o5bt-cgu.0.rcgu.o
cfg_if-2642d2bccc00517a.cfg_if.a3kkb0lu-cgu.0.rcgu.o
libc-760e48b3f782e7f5.libc.xy4tmeqj-cgu.0.rcgu.o
alloc-d4ef8bf89076ed01.alloc.66u4awga-cgu.0.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.0.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.1.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.10.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.100.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.101.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.102.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.103.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.104.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.105.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.106.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.107.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.108.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.109.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.11.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.110.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.111.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.112.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.113.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.114.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.115.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.116.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.117.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.118.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.119.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.12.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.120.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.121.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.122.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.123.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.124.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.125.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.13.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.14.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.15.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.16.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.17.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.18.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.19.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.2.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.20.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.21.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.22.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.23.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.24.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.25.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.26.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.27.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.28.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.29.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.3.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.30.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.31.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.32.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.33.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.34.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.35.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.36.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.37.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.38.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.39.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.4.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.40.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.41.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.42.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.43.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.44.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.45.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.46.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.47.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.48.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.49.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.5.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.50.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.51.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.52.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.53.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.54.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.55.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.56.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.57.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.58.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.59.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.6.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.60.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.61.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.62.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.63.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.64.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.65.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.66.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.67.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.68.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.69.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.7.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.70.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.71.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.72.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.73.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.74.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.75.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.76.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.77.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.78.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.79.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.8.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.80.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.81.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.82.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.83.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.84.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.85.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.86.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.87.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.88.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.89.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.9.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.90.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.91.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.92.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.93.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.94.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.95.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.96.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.97.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.98.rcgu.o
compiler_builtins-e2523c360f03ba10.compiler_builtins.e6fnnbtu-cgu.99.rcgu.o
absvdi2.o
absvsi2.o
absvti2.o
addvdi3.o
addvsi3.o
addvti3.o
clzdi2.o
clzsi2.o
clzti2.o
cmpdi2.o
cmpti2.o
ctzdi2.o
ctzsi2.o
ctzti2.o
divdc3.o
divsc3.o
divxc3.o
extendhfsf2.o
ffsti2.o
floatdisf.o
floatdixf.o
floatundidf.o
floatundisf.o
floatundixf.o
int_util.o
muldc3.o
mulsc3.o
mulvdi3.o
mulvsi3.o
mulvti3.o
mulxc3.o
negdf2.o
negdi2.o
negsf2.o
negti2.o
negvdi2.o
negvsi2.o
negvti2.o
paritydi2.o
paritysi2.o
parityti2.o
popcountdi2.o
popcountsi2.o
popcountti2.o
powixf2.o
subvdi3.o
subvsi3.o
subvti3.o
truncdfhf2.o
truncdfsf2.o
truncsfhf2.o
ucmpdi2.o
ucmpti2.o
apple_versioning.o
rustc_std_workspace_core-36070e2029bb21ea.rustc_std_workspace_core.d3xnngje-cgu.0.rcgu.o
core-3aaf8f932781f33e.core.bxlikzz4-cgu.0.rcgu.o

Compared to the same command using a library compiled with gccrs:

libstatic_lib-8ba9444bc2e1e17e.a.tmp.o

Therefore, I am unsure that checking for more information than a non-empty library proves very useful for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issue related to unit or functional tests
Projects
None yet
Development

No branches or pull requests

1 participant