Skip to content

Commit

Permalink
fix compilation with latest V, unblock vlang/v#17375
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Apr 14, 2023
1 parent 9ed88a7 commit 369ee2c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions android/ndk/ndk.v
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ pub fn compiler_triplet(arch string) string {
return arch_is + '-linux-android${eabi}'
}

[inline]
pub fn libs_path(ndk_version string, arch string, api_level string) !string {
mut host_architecture := host_arch()
mut arch_is := arch_to_instruction_set(arch)
Expand Down Expand Up @@ -398,7 +397,6 @@ pub fn libs_path(ndk_version string, arch string, api_level string) !string {
return libs_path
}

[inline]
pub fn sysroot_path(ndk_version string) !string {
// NOTE "$ndk_root/sysroot/usr/include" was deprecated since NDK r19
mut sysroot_path := os.join_path(root_version(ndk_version), 'toolchains', 'llvm',
Expand Down
2 changes: 1 addition & 1 deletion cli/cli.v
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub fn args_to_options(arguments []string, defaults Options) !(Options, &flag.Fl
}

opt.additional_args = fp.finalize() or {
return error(@FN + ': flag parser failed finalizing: ${err}')
return error(@FN + ': flag parser failed finalizing: ${err.msg()}')
}

mut c_flags := []string{}
Expand Down
2 changes: 1 addition & 1 deletion tests/check_non_existing_flag.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Error while parsing `os.args`: args_to_options: flag parser failed finalizing: flag.UnkownFlagError: Unknown flag `--non-existing-flag`
Error while parsing `os.args`: args_to_options: flag parser failed finalizing: Unknown flag `--non-existing-flag`
Use `vab -h` to see all flags

0 comments on commit 369ee2c

Please sign in to comment.