Skip to content

Commit

Permalink
make sudo conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic committed Jan 15, 2024
1 parent d27a594 commit 08b7936
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion builders/Linux/env
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

export GALLIUM_DRIVER=softpipe
export LIBGL_ALWAYS_SOFTWARE=1
export DRI_NO_MSAA=1
export DRI_NO_MSAA=1
export SUDO=sudo
2 changes: 1 addition & 1 deletion builders/mediafx-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BUILD_TYPE=${BUILD_TYPE:-Release}
MEDIAFX_BUILD="${BUILD_ROOT}/${BUILD_TYPE}"
mkdir -p "$MEDIAFX_BUILD"
cd "$MEDIAFX_BUILD"
(cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE --install-prefix "${QTDIR}" ../../.. && cmake --build . && sudo cmake --install .) || exit 1
(cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE --install-prefix "${QTDIR}" ../../.. && cmake --build . && ${SUDO} cmake --install .) || exit 1
if [[ -v MEDIAFX_TEST ]]; then
make test CTEST_OUTPUT_ON_FAILURE=1 ARGS="${MEDIAFX_TEST}" || exit 1
fi

0 comments on commit 08b7936

Please sign in to comment.