Skip to content

Instantly share code, notes, and snippets.

Nuno Miguel Nobre nmnobre

Block or report user

Report or block nmnobre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nmnobre / as
Last active Jan 11, 2018 — forked from xianyi/as
Replace the native and ancient macOS assembler (/usr/bin/as) or the MacPorts assembler (/opt/local/bin/as) by a script which calls the clang assembler. Now removing "-I dir" options from the arguments passed to the assembler and taking into account possible spaces in ARG in the condition for the first if statement.
View as
ARGS=$(echo $ARGS | perl -pe 's/-I.*?(\s-[^I])/\1/')
while [ $# -ne 0 ]; do
# Skip options
if [ "$ARG" == "-arch" ] || [ "$ARG" == "-o" ]; then
# Skip next token
You can’t perform that action at this time.