This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,6 @@ Switches::Switches(const fml::CommandLine& command_line)
130
130
" 0" ))),
131
131
entry_point(
132
132
command_line.GetOptionValueWithDefault(" entry-point" , " main" )) {
133
- if (!working_directory || !working_directory->is_valid ()) {
134
- return ;
135
- }
136
-
137
133
auto language =
138
134
command_line.GetOptionValueWithDefault (" source-language" , " glsl" );
139
135
std::transform (language.begin (), language.end (), language.begin (),
@@ -144,6 +140,10 @@ Switches::Switches(const fml::CommandLine& command_line)
144
140
source_language = SourceLanguage::kHLSL ;
145
141
}
146
142
143
+ if (!working_directory || !working_directory->is_valid ()) {
144
+ return ;
145
+ }
146
+
147
147
for (const auto & include_dir_path : command_line.GetOptionValues (" include" )) {
148
148
if (!include_dir_path.data ()) {
149
149
continue ;
@@ -196,7 +196,9 @@ bool Switches::AreValid(std::ostream& explain) const {
196
196
}
197
197
198
198
if (!working_directory || !working_directory->is_valid ()) {
199
- explain << " Could not figure out working directory." << std::endl;
199
+ explain << " Could not open the working directory: \" "
200
+ << Utf8FromPath (std::filesystem::current_path ()).c_str () << " \" "
201
+ << std::endl;
200
202
valid = false ;
201
203
}
202
204
You can’t perform that action at this time.
0 commit comments