perf: do not try to mmap .ir to the same address as .olean (#9488)

This commit is contained in:
Sebastian Ullrich 2025-07-23 18:12:44 +02:00 committed by GitHub
parent 04be1c6b5c
commit 9dc4dbebe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -1778,7 +1778,8 @@ def writeModule (env : Environment) (fname : System.FilePath) : IO Unit := do
(← mkPart .exported),
(← mkPart .server),
(← mkPart .private)]
saveModuleData (fname.withExtension "ir") env.mainModule (mkIRData env)
-- Make sure to change the module name so we derive a different base address
saveModuleData (fname.withExtension "ir") (env.mainModule ++ `ir) (mkIRData env)
else
saveModuleData fname env.mainModule (← mkModuleData env)

View file

@ -1,5 +1,7 @@
#include "util/options.h"
// Dear CI, please update stage0
namespace lean {
options get_default_options() {
options opts;