Artifacts Associated With Ticket f46dc3c48d84a387
Ticket change [58349dd259] (rid 235462) by sl1200mk2 on 2024-11-26 13:10:11:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- 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
- foundin initialized to: "trunk"
- is_private initialized to: "0"
- login: "sl1200mk2"
- priority initialized to: "5 Medium"
- private_contact initialized to: "10e302b1a1ae78d60a0878d87bdb4b5f874b815e"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "sl1200mk2"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "building Tcl with -O3"
- type initialized to: "Support"
Ticket change [49e88e3b4b] (rid 250962) by cdubois on 2026-01-26 02:45:51:
- 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.
- login: "cdubois"
- mimetype: "text/plain"
- icomment: