Avatar
Avatar
norio_nomura
-Xlinker --strip-allでクラッシュログにシンボルが出なくなるのは分かるけど、-static-stdlibでも出なくなるのね。 @swift-6.0.3 swiftc @swift-6.0.3 swiftc -Xlinker --strip-all @swift-6.0.3 swiftc -static-stdlib func a() { b() } func b() { assert(false) } a()
swift swiftc -static-stdlib - exit status: 132 with main/<stdin>:2: Assertion failed Current stack trace: 0 main 0x000059d1475fbb9d <unavailable> + 4045725 1 main 0x000059d147285a6a <unavailable> + 416362 2 main 0x000059d147285878 <unavailable> + 415864 3 main 0x000059d1474085d4 <unavailable> + 2000340 4 main 0x000059d147278302 <unavailable> + 361218 5 main 0x000059d1472782a9 <unavailable> + 361129 6 main 0x000059d147278340 main + 9 7 libc.so.6 0x00007f3e5c1181ca <unavailable> + 172490 8 libc.so.6 0x00007f3e5c118200 __libc_start_main + 139 9 main 0x000059d147277f90 _start + 37 /usr/bin/swift-swiftc: line 15: 634 Illegal instruction (core dumped) ./main "$@"
8.11 MB