Skip to content

Commit

Permalink
export: fix deprecation notices
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Dec 4, 2024
1 parent 3a588d7 commit 06d16aa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion export/appimage.v
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub fn (aif AppImageFormat) ext() string {
pub struct AppImageOptions {
ExportOptions
pub:
work_dir string = os.join_path(paths.tmp_work(), 'export', 'appimage') @[ignore]
work_dir string = os.join_path(paths.shy(.temp), 'export', 'appimage') @[ignore]
compress bool @[xdoc: 'Compress executable with `upx` if available']
strip bool @[xdoc: 'Strip executable symbols with `strip` if available']
format AppImageFormat = .app_image
Expand Down
4 changes: 2 additions & 2 deletions export/compile.v
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ pub fn (opt VCompileOptions) uses_gc() bool {
pub struct VDumpOptions {
VCompileOptions
pub:
work_dir string = os.join_path(paths.tmp_work(), 'export', 'v', 'dump') // temporary work directory
work_dir string = os.join_path(paths.shy(.temp), 'export', 'v', 'dump') // temporary work directory
}

pub struct VMetaInfo {
Expand Down Expand Up @@ -253,7 +253,7 @@ pub:
is_prod bool
cc string @[required]
c_flags []string // flags to pass to the C compiler(s)
work_dir string = os.join_path(paths.tmp_work(), 'export', 'v', 'cdeps') // temporary work directory
work_dir string = os.join_path(paths.shy(.temp), 'export', 'v', 'cdeps') // temporary work directory
v_meta VMetaInfo
}

Expand Down
4 changes: 2 additions & 2 deletions export/export.v
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct ExportOptions {
pub:
// These fields would make little sense to change during a run
verbosity int @[short: v; xdoc: 'Verbosity level 1-3']
work_dir string = os.join_path(paths.tmp_work(), 'export', 'appimage') @[ignore]
work_dir string = os.join_path(paths.shy(.temp), 'export', 'appimage') @[ignore]
//
run bool @[ignore]
parallel bool = true @[long: 'no-parallel'; xdoc: 'Do not run tasks in parallel.']
Expand Down Expand Up @@ -91,7 +91,7 @@ fn (svf &SupportedVFlags) as_v_flags() []string {
}

pub fn ensure_cache_dir() !string {
dir := os.join_path(paths.cache(), 'export')
dir := os.join_path(paths.shy(.cache), 'export')
paths.ensure(dir)!
return dir
}
4 changes: 2 additions & 2 deletions export/wasm.v
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub enum WasmFormat {
pub struct WasmOptions {
ExportOptions
pub:
work_dir string = os.join_path(paths.tmp_work(), 'export', 'wasm') @[ignore]
work_dir string = os.join_path(paths.shy(.temp), 'export', 'wasm') @[ignore]
format WasmFormat = .emscripten
s_flags []string
}
Expand Down Expand Up @@ -221,7 +221,7 @@ pub fn wasm(opt WasmOptions) !Result {
// TODO: cache check?
//
// TODO: Remove any previous builds??
v_c_deps := os.join_path(paths.tmp_work(), 'export', 'v', 'cdeps')
v_c_deps := os.join_path(paths.shy(.temp), 'export', 'v', 'cdeps')
v_c_c_opt := VCCompileOptions{
verbosity: opt.verbosity
cache: opt.cache
Expand Down

0 comments on commit 06d16aa

Please sign in to comment.