File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ def install
111111 haswell,-rdrnd,base(1)
112112 x86-64-v4,-rdrnd,base(1) ]
113113 end
114- args << "JULIA_CPU_TARGET=#{ cpu_targets . join ( ";" ) } "
114+ args << "JULIA_CPU_TARGET=#{ cpu_targets . join ( ";" ) } " if ! OS . linux? || ! Hardware :: CPU . arm?
115115 user = begin
116116 tap . user
117117 rescue
@@ -152,6 +152,31 @@ def install
152152
153153 system "make" , *args , "install"
154154
155+ # FIXME: TESTING
156+ if OS . linux? && Hardware ::CPU . arm?
157+ ohai "Getting elf files"
158+ # test detect_cxx_stdlibs
159+ hardlinks = Set . new
160+ elf_files = [ ]
161+ prefix . find do |pn |
162+ next if pn . symlink? || pn . directory?
163+
164+ ohai "Checking #{ pn } dylib?"
165+ dylib = pn . dylib?
166+ ohai "Checking #{ pn } binary_executable?"
167+ binary_executable = pn . binary_executable?
168+ next if !dylib && !binary_executable
169+
170+ # If we've already processed a file, ignore its hardlinks (which have the
171+ # same dev ID and inode). This prevents relocations from being performed
172+ # on a binary more than once.
173+ next unless hardlinks . add? [ pn . stat . dev , pn . stat . ino ]
174+
175+ elf_files << pn
176+ end
177+ return
178+ end
179+
155180 if OS . linux?
156181 # Replace symlinks referencing Cellar paths with ones using opt paths
157182 deps . reject ( &:build? ) . map ( &:to_formula ) . map ( &:opt_lib ) . each do |libdir |
You can’t perform that action at this time.
0 commit comments