Can't compile in Release a tcl/tk translate-c module (work in Debug!)

Hi everyone,

I am starting to create a small app with tcl/tk 9. The thing is it is working in Debug mode! But if I try to compile with any Release mode (Fast, Small or Safe), it’s failing in my translace-c module like this:

C:\Users\Guillaume\Documents\_workspace\musillium>zig build -Dtarget=x86_64-windows-msvc -Doptimize=ReleaseSafe --summary all
install
└─ install musillium
   └─ compile exe musillium ReleaseSafe x86_64-windows-msvc
      └─ translate-c failure
error: error: unrecognized optimization mode: "safe"

error: process exited with code 1
failed command: "G:\\zig\\zig.exe" translate-c -lc --cache-dir .zig-cache --global-cache-dir "C:\\Users\\Guillaume\\AppData\\Local\\zig" -target x86_64-windows-msvc -Osafe -I "C:\\Users\\Guillaume\\Documents\\_workspace\\musillium\\deps\\tcltk9\\include" "C:\\Users\\Guillaume\\Documents\\_workspace\\musillium\\src\\tcltk_wrapper.h" --listen=-

Build Summary: 4/8 steps succeeded (1 failed)
install transitive failure
├─ install muzig success
│  └─ compile lib muzig ReleaseSafe x86_64-windows-msvc cached 66ms MaxRSS:19M
├─ install windowsSoundAPI success
│  └─ compile lib windowsSoundAPI ReleaseSafe x86_64-windows-msvc cached 66ms MaxRSS:19M
└─ install musillium transitive failure
   └─ compile exe musillium ReleaseSafe x86_64-windows-msvc transitive failure
      └─ translate-c failure

error: the following maker command exited with code 1:
C:\Users\Guillaume\AppData\Local\zig\o/2b4343062cb32bc6051cded0e0daf4ac/maker.exe --zig G:\zig\zig.exe --zig-lib-dir G:\zig\lib --build-root C:\Users\Guillaume\Documents\_workspace\musillium --local-cache .zig-cache --global-cache C:\Users\Guillaume\AppData\Local\zig --configuration .zig-cache\c/9d1d92240b58efa09b9fd206295ad75d --seed 0xd9681ea3 --summary all

Here my build part for the translate-c (for tcl/tk):

    const translate_tcltk = b.addTranslateC(.{
        .root_source_file = b.path("src/tcltk_wrapper.h"),
        .target = target,
        .optimize = optimize,
        .link_libc = true,
    });
    translate_tcltk.addIncludePath(b.path("deps/tcltk9/include"));

    const tcltk_mod = translate_tcltk.createModule();

   const gui_mod = b.createModule(.{
        .root_source_file = b.path("src/gui.zig"),
        .target = target,
        .optimize = optimize,
    });
    gui_mod.addImport("tcltk", tcltk_mod);

For info: I compiled tcl/tk in static, with msvc on Windows.

I have no idea what to do… Any ideas?

Thank you!