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

set ARCHFLAGS appropriately for OSX (#169) #170

Merged
merged 3 commits into from
Feb 16, 2015

Conversation

u338steven
Copy link
Contributor

From #169

To check ImageMagick architectures
file command:

$ file `which convert`
/usr/local/bin/convert: Mach-O 64-bit executable x86_64

# set ARCHFLAGS appropriately for OSX
def set_archflags_for_osx
archflags = []
fullpath = `which convert` rescue nil

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using rescue in its modifier form.

end

if archflags.length != 0
$ARCH_FLAG = archflags.join(' ')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is double quotes the route we want to go? I'm preferential to single quotes.

@vassilevsky
Copy link
Member

Great job! I hope that Hound did not disappoint you very much :) Thanks for fixing it.

vassilevsky added a commit that referenced this pull request Feb 16, 2015
@vassilevsky vassilevsky merged commit c138950 into rmagick:master Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants