This commit is contained in:
Kreyren 2020-02-07 19:23:09 +00:00
parent 2c3e50e327
commit 7a140c553a
6 changed files with 21 additions and 18 deletions

@ -16,12 +16,9 @@ all:
vendor:
@ [ ! -d vendor ] && mkdir vendor
@ [ ! -d vendor/rustlang ] && mkdir vendor/rustlang
@ git clone https://github.com/clap-rs/clap.git vendor/rustlang/clap-rs
@ for file in vendor/rustlang/clap-rs/benches/*; do cp "$$file" benches/rustlang/claprs-$${file##vendor/rustlang/clap-rs/benches/} || exit 1; done
build:
@ printf 'FIXME: %s\n' "Build all targets if executed"
@ exit 1
@ [ ! -d vendor/rustlang/clap-rs ] && git clone https://github.com/clap-rs/clap.git vendor/rustlang/clap-rs
@ for file in vendor/rustlang/clap-rs/benches/*; do cp "$$file" benches/rustlang/claprs-$${file##vendor/rustlang/clap-rs/benches/??_}; done
build: build-rustlang build-clang-c build-gcc-c build-gcc-ccp build-clang-c build-clang-ccp build-brainfuck build-python build-vlang build-golang
# FIXME: Build in '$repodir/build/build-rustlang' instead of '$repodir/target' for multilang support
build-rustlang:
@ -123,20 +120,18 @@ check-vlang:
## BENCHES ##
# FIXME: Run all benches if this is executed
bench:
@ exit 1
bench: bench-rustlang
# FIXME: Run vendor and
bench-rustlang:
@ exit 1
bench-rustlang: vendor
@ cargo bench
## CLEAN ##
clean:
@ [ -d build ] && rm -r build
clean: clean-vendor
@ [ -d build ] && rm -rf build
@ printf '%s\n' "Build directory has been cleaned"
clean-vendor:
@ # FIXME: Output helpful message if directory doesn't exists
@ [ -d vendor ] && rm -r vendor
@ [ -d vendor ] && rm -rf vendor

@ -8,6 +8,8 @@ from termcolor import cprint
Requires pip for termcolor
"""
# FIXME: Add logic to generate help message and handle arguments automatically
def cli_arg():
if len(sys.argv) == 1:
cprint("No Arguments Were Passed. Type -h to view basic usage.", "red")

@ -1,3 +1,5 @@
// DEVELOPMENT_HALTED: Vlang's tests does not support our file hierarchy (https://github.com/vlang/v/issues/3674)
fn hello() {
printf("%s\n", "Hello World")
}

@ -1,5 +0,0 @@
fn hellocheck() {
if hello != "Hello World" {
exit 1
}
}

@ -0,0 +1,9 @@
// Blocked by https://github.com/vlang/v/issues/3674
module main
fn hellocheck() {
if hello != "Hello World" {
exit 1
}
}