Skip to content

Commit

Permalink
build: follow a default directory structure for V projects (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Mar 16, 2024
1 parent 95e257f commit 0b5e562
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 2 deletions.
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.

0 comments on commit 0b5e562

Please sign in to comment.