File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 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 )"
119119CFG_BIN_DIR=$CFG_ROOT_DIR /$VIRTUALENV_DIR /bin
120120
121121# 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 $* "
124124 exit $?
125125fi
126126
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ SCANCODE_BIN="$( realpath "${BASH_SOURCE[0]}" )"
121121SCANCODE_ROOT_DIR=" $( cd " $( dirname " ${SCANCODE_BIN} " ) " && pwd ) "
122122
123123# 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 $* "
126126 exit $?
127127fi
128128
Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ SCANCODE_BIN="$( realpath "${BASH_SOURCE[0]}" )"
121121SCANCODE_ROOT_DIR=" $( cd " $( dirname " ${SCANCODE_BIN} " ) " && pwd ) "
122122
123123# 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 $* "
126126 exit $?
127127fi
128128
You can’t perform that action at this time.
0 commit comments