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: vendor:
@ [ ! -d vendor ] && mkdir vendor @ [ ! -d vendor ] && mkdir vendor
@ [ ! -d vendor/rustlang ] && mkdir vendor/rustlang @ [ ! -d vendor/rustlang ] && mkdir vendor/rustlang
@ git clone https://github.com/clap-rs/clap.git vendor/rustlang/clap-rs @ [ ! -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/} || exit 1; done @ 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
build:
@ printf 'FIXME: %s\n' "Build all targets if executed"
@ exit 1
# FIXME: Build in '$repodir/build/build-rustlang' instead of '$repodir/target' for multilang support # FIXME: Build in '$repodir/build/build-rustlang' instead of '$repodir/target' for multilang support
build-rustlang: build-rustlang:
@ -123,20 +120,18 @@ check-vlang:
## BENCHES ## ## BENCHES ##
# FIXME: Run all benches if this is executed # FIXME: Run all benches if this is executed
bench: bench: bench-rustlang
@ exit 1
# FIXME: Run vendor and # FIXME: Run vendor and
bench-rustlang: bench-rustlang: vendor
@ exit 1
@ cargo bench @ cargo bench
## CLEAN ## ## CLEAN ##
clean: clean: clean-vendor
@ [ -d build ] && rm -r build @ [ -d build ] && rm -rf build
@ printf '%s\n' "Build directory has been cleaned" @ printf '%s\n' "Build directory has been cleaned"
clean-vendor: clean-vendor:
@ # FIXME: Output helpful message if directory doesn't exists @ # 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 Requires pip for termcolor
""" """
# FIXME: Add logic to generate help message and handle arguments automatically
def cli_arg(): def cli_arg():
if len(sys.argv) == 1: if len(sys.argv) == 1:
cprint("No Arguments Were Passed. Type -h to view basic usage.", "red") 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() { fn hello() {
printf("%s\n", "Hello World") 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
}
}