Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: follow a default directory structure for V projects #25

Merged
merged 1 commit into from
Mar 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Binaries for programs and plugins
main
v-analyzer
**/*.exe
**/*.exp
**/*.exe~
Expand Down
3 changes: 1 addition & 2 deletions build.vsh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import term
import v.vmod

const version = vmod.decode(@VMOD_FILE) or { panic(err) }.version
const code_path = './cmd/v-analyzer'
const bin_path = './bin/v-analyzer' + $if windows { '.exe' } $else { '' }

const build_commit = os.execute('git rev-parse --short HEAD').output.trim_space()
Expand All @@ -28,7 +27,7 @@ fn errorln(msg string) {
}

fn (m ReleaseMode) compile_cmd() string {
base_build_cmd := '${@VEXE} ${code_path} -o ${bin_path} -no-parallel'
base_build_cmd := '${@VEXE} ${@VMODROOT} -o ${bin_path} -no-parallel'
cc := if v := os.getenv_opt('CC') {
'-cc ${v}'
} else {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.