Commit 23f7dcb 1 parent 85958b8 commit 23f7dcb Copy full SHA for 23f7dcb
File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ default = ["macos"]
9
9
10
10
macos = []
11
11
ios = []
12
+ profiling-release = []
12
13
13
14
[dependencies ]
14
15
# # Shared dependencies
Original file line number Diff line number Diff line change @@ -25,16 +25,12 @@ fn compile_shaders() {
25
25
get_sdk( ) ,
26
26
"metal" ,
27
27
"-c" ,
28
- "-frecord-sources" ,
29
28
shader_path. to_str( ) . unwrap( ) ,
30
29
"-o" ,
31
30
air_output. to_str( ) . unwrap( ) ,
32
31
] ;
33
32
34
- if std:: env:: var ( "PROFILE" )
35
- . map ( |profile| profile == "release" )
36
- . unwrap_or ( false )
37
- {
33
+ if cfg ! ( feature = "profiling-release" ) {
38
34
args. push ( "-frecord-sources" ) ;
39
35
}
40
36
@@ -62,10 +58,7 @@ fn compile_shaders() {
62
58
metallib_output. to_str( ) . unwrap( ) ,
63
59
] ;
64
60
65
- if std:: env:: var ( "PROFILE" )
66
- . map ( |profile| profile == "release" )
67
- . unwrap_or ( false )
68
- {
61
+ if cfg ! ( feature = "profiling-release" ) {
69
62
metallib_args. push ( "-frecord-sources" ) ;
70
63
}
71
64
You can’t perform that action at this time.
0 commit comments