Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 49e88e3b4b3eae3cc4ea278fdc252c84691b41adc5c717a859675dbe15673ebd
Ticket: f46dc3c48d84a3879c8da793d755d5543188668c
building Tcl with -O3
User & Date: cdubois on 2026-01-26 02:45:51
Changes

  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"