[Bug 269838] lang/zig web example (json parse) showing nothing in -O ReleaseSmall or ReleaseFast

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Feb 2023 18:00:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269838

            Bug ID: 269838
           Summary: lang/zig web example (json parse) showing nothing in
                    -O ReleaseSmall or ReleaseFast
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: dch@freebsd.org
          Reporter: dufresnep@zoho.com
          Assignee: dch@freebsd.org
             Flags: maintainer-feedback?(dch@freebsd.org)

hello works fine, whatever ReleaseFast or ReleaseSmall.
but no1 is problematic
(I am new to zig... might be me)
no1.zig is example on:
https://ziglang.org/

paul@dufresnep:~ $ cd myzig/
paul@dufresnep:~/myzig $ ls
hello           hello.zig       no1.o
hello.o         no1             no1.zig
paul@dufresnep:~/myzig $ zig version
0.10.1
paul@dufresnep:~/myzig $ zig build-exe -O ReleaseSafe no1.zig
paul@dufresnep:~/myzig $ ls -lh no1
-rwxr-xr-x  1 paul  paul   769K Feb 26 12:54 no1
paul@dufresnep:~/myzig $ ./no1
info: up=9999
paul@dufresnep:~/myzig $ zig build-exe -O ReleaseFast no1.zig
paul@dufresnep:~/myzig $ ls -lh no1
-rwxr-xr-x  1 paul  paul    53K Feb 26 12:54 no1
paul@dufresnep:~/myzig $ ./no1
paul@dufresnep:~/myzig $ zig build-exe -O ReleaseSmall no1.zig
paul@dufresnep:~/myzig $ ls -lh no1
-rwxr-xr-x  1 paul  paul   4.4K Feb 26 12:55 no1
paul@dufresnep:~/myzig $ ./no1
paul@dufresnep:~/myzig $ zig build-exe no1.zig
paul@dufresnep:~/myzig $ ls -lh no1
-rwxr-xr-x  1 paul  paul   1.0M Feb 26 12:55 no1
paul@dufresnep:~/myzig $ ./no1
info: up=9999
paul@dufresnep:~/myzig $ 

Was expecting ReleaseFast and ReleaseSmall to show same as when no Release.

-- 
You are receiving this mail because:
You are the assignee for the bug.