Fix all the linter warnings
This commit is contained in:
parent
14a833f841
commit
4d3624505e
27
builder
27
builder
|
@ -80,9 +80,6 @@ CMAKEARGS=("-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
|
||||||
# shellcheck source=scripts/utils.sh
|
# shellcheck source=scripts/utils.sh
|
||||||
source "$ME/scripts/utils.sh"
|
source "$ME/scripts/utils.sh"
|
||||||
|
|
||||||
# shellcheck source=scripts/containers.sh
|
|
||||||
source "$ME/scripts/containers.sh"
|
|
||||||
|
|
||||||
# shellcheck source=scripts/devfs.sh
|
# shellcheck source=scripts/devfs.sh
|
||||||
source "$ME/scripts/devfs.sh"
|
source "$ME/scripts/devfs.sh"
|
||||||
|
|
||||||
|
@ -144,30 +141,6 @@ function build() { ## Builds the project by regenerating the build scripts
|
||||||
popd_build
|
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)
|
function build-20() { ## Builds the project using C++20 (will regenerate the build)
|
||||||
clean
|
clean
|
||||||
pushed_build
|
pushed_build
|
||||||
|
|
|
@ -62,7 +62,8 @@ SERENE_EXPORT void terminate(SereneContext &ctx, int exitCode);
|
||||||
class SERENE_EXPORT SereneContext {
|
class SERENE_EXPORT SereneContext {
|
||||||
|
|
||||||
public:
|
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
|
/// The set of options to change the compilers behaivoirs
|
||||||
Options opts;
|
Options opts;
|
||||||
|
|
|
@ -168,8 +168,8 @@ function build_llvm_multiarch() {
|
||||||
local ROOT="$2"
|
local ROOT="$2"
|
||||||
|
|
||||||
info "Building the multiarch llvm images for:"
|
info "Building the multiarch llvm images for:"
|
||||||
info "VERSION: $LLVM_VERSION | Platforms: $PLATFORMS"
|
info "VERSION: $LLVM_VERSION | Platforms: ${PLATFORMS[*]}"
|
||||||
docker buildx build --platform "$PLATFORMS" \
|
docker buildx build --platform "${PLATFORMS[@]}" \
|
||||||
--builder "$BUILDER_NAME" --push \
|
--builder "$BUILDER_NAME" --push \
|
||||||
-f "$ROOT/resources/docker/llvm/Dockerfile" \
|
-f "$ROOT/resources/docker/llvm/Dockerfile" \
|
||||||
-t "$REGISTRY/$IMAGE_NAME:${LLVM_VERSION}-$(git describe)" \
|
-t "$REGISTRY/$IMAGE_NAME:${LLVM_VERSION}-$(git describe)" \
|
||||||
|
|
Loading…
Reference in New Issue