aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-08 15:31:28 -0700
committerMax Howell2009-09-10 18:17:15 +0100
commit1a44bacc7e0ff000fea3e901e0ef7645725c2f7e (patch)
treedf03ad07c371c4f297622f5a6b0db4d31a27bf8d /Library/Formula
parent9f79ad9db20634c3a2fb33f50e7739878ecf06c6 (diff)
downloadhomebrew-1a44bacc7e0ff000fea3e901e0ef7645725c2f7e.tar.bz2
Function to return a binary's Mach-O architectures
Added a utility method to get an array of architecture names for a given executable. This will be useful for, say, figuring out what Python was compiled for, to know what to compile a C-based module as. Signed Off By: Max Howell <max@methylblue.com> I added a test and made the function use `which` if the path provided is not absolute. I considered allowing relative paths, but then it is possible for the function to take eg. the svn binary from the current directory when you meant the one in the path, and that could be a confusing bug.
Diffstat (limited to 'Library/Formula')
0 files changed, 0 insertions, 0 deletions