File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ impl Build {
38
38
// Ensure the shader output dir exists
39
39
log:: debug!( "ensuring output-dir '{}' exists" , self . output_dir. display( ) ) ;
40
40
std:: fs:: create_dir_all ( & self . output_dir ) ?;
41
- self . output_dir = self . output_dir . canonicalize ( ) ?;
41
+ let canonicalized = self . output_dir . canonicalize ( ) ?;
42
+ log:: debug!( "canonicalized output dir: {canonicalized:?}" ) ;
43
+ self . output_dir = canonicalized;
42
44
43
45
// Ensure the shader crate exists
44
46
self . install . shader_crate = self . install . shader_crate . canonicalize ( ) ?;
Original file line number Diff line number Diff line change @@ -117,12 +117,6 @@ impl Toml {
117
117
command : Command :: Build ( mut build) ,
118
118
} = Cli :: parse_from ( parameters)
119
119
{
120
- // Ensure that the output directory is relative to the toml file
121
- if build. output_dir . is_relative ( ) {
122
- let dir = path. parent ( ) . context ( "no path parent" ) ?;
123
- build. output_dir = dir. join ( build. output_dir ) ;
124
- }
125
-
126
120
log:: debug!( "build: {build:?}" ) ;
127
121
build. run ( ) ?;
128
122
} else {
You can’t perform that action at this time.
0 commit comments