How to reproduce:
1. Open the attached "IN-151232_wasm66.zip" project
2. In the Editor, run the reproduction script from the top of the window ("Test -> Run Repro")
3. Wait for the build to finish
4. Open the project folder in your file manager
5. Find and open the Editor.log file
6. In the Editor log, search for "optsize"
7. Observe the found results
Actual result: The build reports using "modules_wasm23_wasm64_optsize", despite "Runtime Speed" being selected as the Code Optimization
Expected result: The build correctly uses the "Runtime Speed" Code Optimization
Reproducible with: 6000.6.0b2, 6000.6.1f1, 6000.7.0a6
Could not test with: 6000.0.83f1, 6000.3.24f1, (Wasm 64 not available)
Reproducible on: macOS 26.6, Windows 11
Not reproducible on: No other environments tested
Note: A non-optsize folder for Wasm 64 is missing in the WebGL component variations, which can be checked by going to the used Unity version's installation folder, then (On Windows) "Data -> PlaybackEngines -> WebGLSupport -> Variations"