File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ CFG_ROOT_DIR="$( cd "$( dirname "${CFG_BIN}" )" && pwd )"
119
119
CFG_BIN_DIR=$CFG_ROOT_DIR /$VIRTUALENV_DIR /bin
120
120
121
121
# force relaunching under X86-64 architecture on macOS M1/ARM
122
- if [[ $OSTYPE == ' darwin' * && $( uname -m) == ' arm64' ]]; then
123
- arch -x86_64 /bin/bash -c " $CFG_ROOT_DIR /configure $@ "
122
+ if [[ $OSTYPE == ' darwin' * && $( uname -m) == ' arm64' && $( sysctl -in sysctl.proc_translated ) == 0 ]]; then
123
+ arch -x86_64 /bin/bash -c " $CFG_ROOT_DIR /configure $* "
124
124
exit $?
125
125
fi
126
126
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ SCANCODE_BIN="$( realpath "${BASH_SOURCE[0]}" )"
121
121
SCANCODE_ROOT_DIR=" $( cd " $( dirname " ${SCANCODE_BIN} " ) " && pwd ) "
122
122
123
123
# force relaunching under X86-64 architecture on macOS M1/ARM
124
- if [[ $OSTYPE == ' darwin' * && $( uname -m) == ' arm64' ]]; then
125
- arch -x86_64 /bin/bash -c " $SCANCODE_ROOT_DIR /$COMMAND_TO_RUN $@ "
124
+ if [[ $OSTYPE == ' darwin' * && $( uname -m) == ' arm64' && $( sysctl -in sysctl.proc_translated ) == 0 ]]; then
125
+ arch -x86_64 /bin/bash -c " $SCANCODE_ROOT_DIR /$COMMAND_TO_RUN $* "
126
126
exit $?
127
127
fi
128
128
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ SCANCODE_BIN="$( realpath "${BASH_SOURCE[0]}" )"
121
121
SCANCODE_ROOT_DIR=" $( cd " $( dirname " ${SCANCODE_BIN} " ) " && pwd ) "
122
122
123
123
# force relaunching under X86-64 architecture on macOS M1/ARM
124
- if [[ $OSTYPE == ' darwin' * && $( uname -m) == ' arm64' ]]; then
125
- arch -x86_64 /bin/bash -c " $SCANCODE_ROOT_DIR /$COMMAND_TO_RUN $@ "
124
+ if [[ $OSTYPE == ' darwin' * && $( uname -m) == ' arm64' && $( sysctl -in sysctl.proc_translated ) == 0 ]]; then
125
+ arch -x86_64 /bin/bash -c " $SCANCODE_ROOT_DIR /$COMMAND_TO_RUN $* "
126
126
exit $?
127
127
fi
128
128
You can’t perform that action at this time.
0 commit comments