File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,8 @@ void Log::configure() {
94
94
// as we are configuring logging right now, we collect problems and log them at the end
95
95
auto problems = collectSeverityRulesAndReturnProblems (" CODEQL_EXTRACTOR_SWIFT_LOG_LEVELS" );
96
96
if (text || binary) {
97
- std::filesystem::path logFile = getEnvOr (" CODEQL_EXTRACTOR_SWIFT_LOG_DIR" , " ." );
97
+ std::filesystem::path logFile = getEnvOr (" CODEQL_EXTRACTOR_SWIFT_LOG_DIR" , " extractor-out/log" );
98
+ logFile /= " swift" ;
98
99
logFile /= logRootName;
99
100
logFile /= std::to_string (std::chrono::system_clock::now ().time_since_epoch ().count ());
100
101
std::error_code ec;
Original file line number Diff line number Diff line change @@ -177,9 +177,11 @@ codeql::TrapDomain invocationTrapDomain(codeql::SwiftExtractorState& state) {
177
177
178
178
codeql::SwiftExtractorConfiguration configure (int argc, char ** argv) {
179
179
codeql::SwiftExtractorConfiguration configuration{};
180
- configuration.trapDir = getenv_or (" CODEQL_EXTRACTOR_SWIFT_TRAP_DIR" , " ." );
181
- configuration.sourceArchiveDir = getenv_or (" CODEQL_EXTRACTOR_SWIFT_SOURCE_ARCHIVE_DIR" , " ." );
182
- configuration.scratchDir = getenv_or (" CODEQL_EXTRACTOR_SWIFT_SCRATCH_DIR" , " ." );
180
+ configuration.trapDir = getenv_or (" CODEQL_EXTRACTOR_SWIFT_TRAP_DIR" , " extractor-out/trap/swift" );
181
+ configuration.sourceArchiveDir =
182
+ getenv_or (" CODEQL_EXTRACTOR_SWIFT_SOURCE_ARCHIVE_DIR" , " extractor-out/src" );
183
+ configuration.scratchDir =
184
+ getenv_or (" CODEQL_EXTRACTOR_SWIFT_SCRATCH_DIR" , " extractor-out/working" );
183
185
configuration.frontendOptions .assign (argv + 1 , argv + argc);
184
186
return configuration;
185
187
}
You can’t perform that action at this time.
0 commit comments