Fix all the linter warnings

This commit is contained in:
Sameer Rahmani 2022-07-10 07:52:15 +01:00
parent 14a833f841
commit 4d3624505e
6 changed files with 13 additions and 39 deletions

27
builder
View File

@ -80,9 +80,6 @@ CMAKEARGS=("-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
# shellcheck source=scripts/utils.sh
source "$ME/scripts/utils.sh"
# shellcheck source=scripts/containers.sh
source "$ME/scripts/containers.sh"
# shellcheck source=scripts/devfs.sh
source "$ME/scripts/devfs.sh"
@ -144,30 +141,6 @@ function build() { ## Builds the project by regenerating the build scripts
popd_build
}
function build-container() { ## Builds the project in handmade container (Linux only)
# shellcheck source=/dev/null
source .env
local uid
local gid
# uid=$(id -u)
# gid=$(id -g)
# --map-user="$uid" \
# --map-group="$gid" \
unshare --user \
-w "/app" \
--uts --net --ipc \
--pid --fork \
-c \
--kill-child \
--cgroup \
--mount \
--mount-proc \
--root="$DEVFS" \
/bin/bash
}
function build-20() { ## Builds the project using C++20 (will regenerate the build)
clean
pushed_build

View File

@ -62,7 +62,8 @@ SERENE_EXPORT void terminate(SereneContext &ctx, int exitCode);
class SERENE_EXPORT SereneContext {
public:
template <typename T> using CurrentNSFn = std::function<T()>;
template <typename T>
using CurrentNSFn = std::function<T()>;
/// The set of options to change the compilers behaivoirs
Options opts;

View File

@ -168,8 +168,8 @@ function build_llvm_multiarch() {
local ROOT="$2"
info "Building the multiarch llvm images for:"
info "VERSION: $LLVM_VERSION | Platforms: $PLATFORMS"
docker buildx build --platform "$PLATFORMS" \
info "VERSION: $LLVM_VERSION | Platforms: ${PLATFORMS[*]}"
docker buildx build --platform "${PLATFORMS[@]}" \
--builder "$BUILDER_NAME" --push \
-f "$ROOT/resources/docker/llvm/Dockerfile" \
-t "$REGISTRY/$IMAGE_NAME:${LLVM_VERSION}-$(git describe)" \