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() {
9494 // as we are configuring logging right now, we collect problems and log them at the end
9595 auto problems = collectSeverityRulesAndReturnProblems (" CODEQL_EXTRACTOR_SWIFT_LOG_LEVELS" );
9696 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" ;
9899 logFile /= logRootName;
99100 logFile /= std::to_string (std::chrono::system_clock::now ().time_since_epoch ().count ());
100101 std::error_code ec;
Original file line number Diff line number Diff line change @@ -177,9 +177,11 @@ codeql::TrapDomain invocationTrapDomain(codeql::SwiftExtractorState& state) {
177177
178178codeql::SwiftExtractorConfiguration configure (int argc, char ** argv) {
179179 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" );
183185 configuration.frontendOptions .assign (argv + 1 , argv + argc);
184186 return configuration;
185187}
You can’t perform that action at this time.
0 commit comments