Skip to content
Tcl Source Code History Of Ticket f46dc3c48d
Login

History Of Ticket f46dc3c48d

Artifacts Associated With Ticket f46dc3c48d

  1. Ticket change [58349dd259] (rid 235462) by sl1200mk2 on 2024-11-26 13:10:11:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      Hi,
      I'm compiling Tcl on macOS and I would like to test it against -O3
      
      the way I build Tcl on macOS is:
      make -C macosx deploy
      and -O2 is automatically set.
      
      the only way I've found is to:
      make -j 4 -C macosx deploy CFLAGS="-O3 -g0 -UCFLAGS_DEFAULT -fomit-frame-pointer"
      
      is there's another way?
      best regards,
      Nicolas
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "sl1200mk2"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "10e302b1a1ae78d60a0878d87bdb4b5f874b815e"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "sl1200mk2"
    14. subsystem initialized to: "53. Configuration and Build Tools"
    15. title initialized to: "building Tcl with -O3"
    16. type initialized to: "Support"
  2. Ticket change [49e88e3b4b] (rid 250962) by cdubois on 2026-01-26 02:45:51:

    1. icomment:
      On macOS you don’t have to use the macosx make wrapper if you want to experiment with different compiler flags. The supported approach is the Unix build flow; macOS is covered there, with the mac-specific options --enable-framework and --enable-aqua.
      
      Example (Framework build, isolated prefix, -O3 test):
      
      mkdir -p build && cd build
      ../unix/configure --enable-framework --enable-aqua \
        --prefix="$HOME/tcl-O3-test" \
        CFLAGS="-O3 -g0"
      make -j4
      make test
      make install
      
      
      If you prefer to stay with make -C macosx deploy, overriding CFLAGS in the make invocation is the right direction; deploy is the “optimized build” target in the macOS build system.
      If there’s a cleaner knob than passing variables to make, I haven’t found it in the macOS build docs—happy to be corrected by someone more familiar with that make wrapper.
      
    2. login: "cdubois"
    3. mimetype: "text/plain"