@@ -84,7 +84,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
84
84
readmeta (f) do oh
85
85
if ! is_for_platform (oh, platform)
86
86
if verbose
87
- @warn (" Skipping binary analysis of $(relpath (f, prefix. path)) (incorrect platform)" )
87
+ @warn (" Skipping binary analysis of $(relpath (f, prefix. path)) (incorrect platform)" , platform = triplet (platform) )
88
88
end
89
89
else
90
90
# Check that the ISA isn't too high
@@ -97,7 +97,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
97
97
# should be done when autofix=true, but we have to run this fix on MKL
98
98
# for Windows, for which however we have to set autofix=false:
99
99
# https://github.com/JuliaPackaging/Yggdrasil/pull/922.
100
- all_ok &= ensure_executability (oh; verbose, silent)
100
+ all_ok &= ensure_executability (oh, platform ; verbose, silent)
101
101
102
102
# If this is a dynamic object, do the dynamic checks
103
103
if isdynamic (oh)
@@ -168,7 +168,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
168
168
# TODO : Use the relevant ObjFileBase packages to inspect why
169
169
# this file is being nasty to us.
170
170
if ! silent
171
- @warn (" $(relpath (f, prefix. path)) cannot be dlopen()'ed" )
171
+ @warn (" $(relpath (f, prefix. path)) cannot be dlopen()'ed" , platform = triplet (platform) )
172
172
end
173
173
all_ok = false
174
174
end
@@ -181,7 +181,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
181
181
end
182
182
183
183
# Ensure that this library is available at its own SONAME
184
- all_ok &= symlink_soname_lib (f; verbose= verbose, autofix= autofix)
184
+ all_ok &= symlink_soname_lib (f, platform ; verbose= verbose, autofix= autofix)
185
185
end
186
186
187
187
# remove *.la files generated by GNU libtool
@@ -228,7 +228,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
228
228
lib_dll_files = filter (f -> valid_library_path (f, platform), collect_files (joinpath (prefix, " lib" ), predicate))
229
229
for f in lib_dll_files
230
230
if ! silent
231
- @warn (" $(relpath (f, prefix. path)) should be in `bin`!" )
231
+ @warn (" $(relpath (f, prefix. path)) should be in `bin`!" , platform = triplet (platform) )
232
232
end
233
233
end
234
234
@@ -239,7 +239,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
239
239
outside_dll_files = [f for f in shlib_files if ! (f in lib_dll_files)]
240
240
if autofix && ! isempty (lib_dll_files) && isempty (outside_dll_files)
241
241
if ! silent
242
- @warn (" Simple buildsystem detected; Moving all `.dll` files to `bin`!" )
242
+ @warn (" Simple buildsystem detected; Moving all `.dll` files to `bin`!" , platform = triplet (platform) )
243
243
end
244
244
245
245
mkpath (joinpath (prefix, " bin" ))
@@ -269,10 +269,10 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
269
269
all_files = collect_files (prefix, predicate)
270
270
271
271
# Search for absolute paths in this prefix
272
- all_ok &= check_absolute_paths (prefix, all_files; silent= silent)
272
+ all_ok &= check_absolute_paths (prefix, platform, all_files; silent= silent)
273
273
274
274
# Search for case-sensitive ambiguities
275
- all_ok &= check_case_sensitivity (prefix)
275
+ all_ok &= check_case_sensitivity (prefix, platform )
276
276
return all_ok
277
277
end
278
278
@@ -320,7 +320,7 @@ function check_isa(oh, platform, prefix;
320
320
Minimum instruction set detected for $(relpath (path (oh), prefix. path)) is
321
321
$(detected_march) , not $(last (platform_marchs)) as desired.
322
322
""" , ' \n ' => ' ' )
323
- @warn (strip (msg))
323
+ @warn (strip (msg), platform = triplet (platform) )
324
324
end
325
325
return false
326
326
elseif detected_march != last (platform_marchs)
@@ -334,7 +334,7 @@ function check_isa(oh, platform, prefix;
334
334
$(detected_march) , not $(last (platform_marchs)) as desired.
335
335
You may be missing some optimization flags during compilation.
336
336
""" , ' \n ' => ' ' )
337
- @warn (strip (msg))
337
+ @warn (strip (msg), platform = triplet (platform) )
338
338
end
339
339
end
340
340
return true
@@ -392,22 +392,22 @@ function check_dynamic_linkage(oh, prefix, bin_files;
392
392
end
393
393
else
394
394
if ! silent
395
- @warn (" Linked library $(libname) could not be resolved and could not be auto-mapped" )
395
+ @warn (" Linked library $(libname) could not be resolved and could not be auto-mapped" , platform = triplet (platform) )
396
396
if is_troublesome_library_link (libname, platform)
397
- @warn (" Depending on $(libname) is known to cause problems at runtime, make sure to link against the JLL library instead" )
397
+ @warn (" Depending on $(libname) is known to cause problems at runtime, make sure to link against the JLL library instead" , platform = triplet (platform) )
398
398
end
399
399
end
400
400
all_ok = false
401
401
end
402
402
else
403
403
if ! silent
404
- @warn (" Linked library $(libname) could not be resolved within the given prefix" )
404
+ @warn (" Linked library $(libname) could not be resolved within the given prefix" , platform = triplet (platform) )
405
405
end
406
406
all_ok = false
407
407
end
408
408
elseif ! startswith (libs[libname], prefix. path)
409
409
if ! silent
410
- @warn (" Linked library $(libname) (resolved path $(libs[libname]) ) is not within the given prefix" )
410
+ @warn (" Linked library $(libname) (resolved path $(libs[libname]) ) is not within the given prefix" , platform = triplet (platform) )
411
411
end
412
412
all_ok = false
413
413
end
0 commit comments