@@ -84,7 +84,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
8484 readmeta (f) do oh
8585 if ! is_for_platform (oh, platform)
8686 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) )
8888 end
8989 else
9090 # Check that the ISA isn't too high
@@ -97,7 +97,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
9797 # should be done when autofix=true, but we have to run this fix on MKL
9898 # for Windows, for which however we have to set autofix=false:
9999 # https://github.com/JuliaPackaging/Yggdrasil/pull/922.
100- all_ok &= ensure_executability (oh; verbose, silent)
100+ all_ok &= ensure_executability (oh, platform ; verbose, silent)
101101
102102 # If this is a dynamic object, do the dynamic checks
103103 if isdynamic (oh)
@@ -168,7 +168,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
168168 # TODO : Use the relevant ObjFileBase packages to inspect why
169169 # this file is being nasty to us.
170170 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) )
172172 end
173173 all_ok = false
174174 end
@@ -181,7 +181,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
181181 end
182182
183183 # 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)
185185 end
186186
187187 # remove *.la files generated by GNU libtool
@@ -228,7 +228,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
228228 lib_dll_files = filter (f -> valid_library_path (f, platform), collect_files (joinpath (prefix, " lib" ), predicate))
229229 for f in lib_dll_files
230230 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) )
232232 end
233233 end
234234
@@ -239,7 +239,7 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
239239 outside_dll_files = [f for f in shlib_files if ! (f in lib_dll_files)]
240240 if autofix && ! isempty (lib_dll_files) && isempty (outside_dll_files)
241241 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) )
243243 end
244244
245245 mkpath (joinpath (prefix, " bin" ))
@@ -269,10 +269,10 @@ function audit(prefix::Prefix, src_name::AbstractString = "";
269269 all_files = collect_files (prefix, predicate)
270270
271271 # 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)
273273
274274 # Search for case-sensitive ambiguities
275- all_ok &= check_case_sensitivity (prefix)
275+ all_ok &= check_case_sensitivity (prefix, platform )
276276 return all_ok
277277end
278278
@@ -320,7 +320,7 @@ function check_isa(oh, platform, prefix;
320320 Minimum instruction set detected for $(relpath (path (oh), prefix. path)) is
321321 $(detected_march) , not $(last (platform_marchs)) as desired.
322322 """ , ' \n ' => ' ' )
323- @warn (strip (msg))
323+ @warn (strip (msg), platform = triplet (platform) )
324324 end
325325 return false
326326 elseif detected_march != last (platform_marchs)
@@ -334,7 +334,7 @@ function check_isa(oh, platform, prefix;
334334 $(detected_march) , not $(last (platform_marchs)) as desired.
335335 You may be missing some optimization flags during compilation.
336336 """ , ' \n ' => ' ' )
337- @warn (strip (msg))
337+ @warn (strip (msg), platform = triplet (platform) )
338338 end
339339 end
340340 return true
@@ -392,22 +392,22 @@ function check_dynamic_linkage(oh, prefix, bin_files;
392392 end
393393 else
394394 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) )
396396 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) )
398398 end
399399 end
400400 all_ok = false
401401 end
402402 else
403403 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) )
405405 end
406406 all_ok = false
407407 end
408408 elseif ! startswith (libs[libname], prefix. path)
409409 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) )
411411 end
412412 all_ok = false
413413 end
0 commit comments