Skip to content

Commit

Permalink
Adjust assertion for pkgimage & code-coverage (#48036)
Browse files Browse the repository at this point in the history
  • Loading branch information
vchuravy authored Dec 30, 2022
1 parent 4d206c9 commit cc5bc87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using namespace llvm;

static int codegen_imaging_mode(void)
{
return jl_options.image_codegen || jl_generating_output();
return jl_options.image_codegen || (jl_generating_output() && jl_options.use_pkgimages);
}

// Logging for code coverage and memory allocation
Expand Down
2 changes: 1 addition & 1 deletion src/jitlayers.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ GlobalVariable *jl_emit_RTLD_DEFAULT_var(Module *M);
DataLayout jl_create_datalayout(TargetMachine &TM);

static inline bool imaging_default() {
return jl_options.image_codegen || jl_generating_output();
return jl_options.image_codegen || (jl_generating_output() && jl_options.use_pkgimages);
}

struct OptimizationOptions {
Expand Down

0 comments on commit cc5bc87

Please sign in to comment.