www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - LDC 1.40.0-beta1

reply kinke <noone nowhere.com> writes:
Glad to announce the first beta for LDC 1.40. Major changes:

* Based on D ~2.110.0 (today's upstream stable).
* LLVM for prebuilt packages bumped to v18.1.8 (incl. macOS 
arm64).
* Android: NDK for prebuilt package bumped from r26d to r27.

Full release log and downloads: 
https://github.com/ldc-developers/ldc/releases/tag/v1.40.0-beta1

Please help test, and thanks to all contributors & sponsors!
Aug 10
next sibling parent IchorDev <zxinsworld gmail.com> writes:
On Saturday, 10 August 2024 at 20:46:52 UTC, kinke wrote:
 Glad to announce the first beta for LDC 1.40. Major changes:

 * Based on D ~2.110.0 (today's upstream stable).
 * LLVM for prebuilt packages bumped to v18.1.8 (incl. macOS 
 arm64).
 * Android: NDK for prebuilt package bumped from r26d to r27.

 Full release log and downloads: 
 https://github.com/ldc-developers/ldc/releases/tag/v1.40.0-beta1

 Please help test, and thanks to all contributors & sponsors!
I blink and LDC gets updated to the latest version! Probably won’t have to test this one myself though, unfortunately.
Aug 11
prev sibling parent reply kinke <noone nowhere.com> writes:
The 2nd beta has just been released, including the latest 
upstream `stable` fixes and a LDC-specific regression fix 
(introduced in v1.31, for under-alignment edge cases): 
https://github.com/ldc-developers/ldc/releases/tag/v1.40.0-beta2
Aug 20
parent reply Dakota <dakota gmail.com> writes:
On Tuesday, 20 August 2024 at 23:21:34 UTC, kinke wrote:
 The 2nd beta has just been released, including the latest 
 upstream `stable` fixes and a LDC-specific regression fix 
 (introduced in v1.31, for under-alignment edge cases): 
 https://github.com/ldc-developers/ldc/releases/tag/v1.40.0-beta2
Thanks for the great work. Today I try wasm with ldc2, can not pass the linker to it: ```sh ldc2 -linker=/user/local/wasi/bin/wasm-ld -mtriple=wasm32-unknown-wasi test.d -v ldc2 -mtriple=wasm32-unknown-wasi test.d -v ``` I try with `-linker`, `-gcc` and without them. all results in same case: ```sh semantic test semantic2 test semantic3 test GC stats 1M used, 11M free, 12M total code test lld test.o -o test.wasm -z stack-size=1048576 --stack-first --export-dynamic --gc-sections lld: error: entry symbol not defined (pass --no-entry to suppress): _start Error: linking with LLD failed ``` I dont event have `ld.lld` in my path, and I also try rename wasm-ld . all turn out use lld here. and I can not modify the args `-z stack-size=1048576 --stack-first --export-dynamic --gc-sections` Is this hardcoded in ldc2 ? I find https://github.com/ldc-developers/ldc/pull/2951, I guess it will search wasm-ld from ENV path. but after I rename wasm-ld the results is same. any suggestion how can I pass my own linker here?
Aug 22
next sibling parent Dakota <dakota gmail.com> writes:
On Thursday, 22 August 2024 at 10:50:44 UTC, Dakota wrote:
 On Tuesday, 20 August 2024 at 23:21:34 UTC, kinke wrote:


 any suggestion how can I pass my own linker here?
add `--link-internally=false` seems fix the problem. Then I get this: https://github.com/ldc-developers/ldc/issues/4696 , any way to workaround ?
Aug 22
prev sibling parent reply kinke <noone nowhere.com> writes:
On Thursday, 22 August 2024 at 10:50:44 UTC, Dakota wrote:
 Is this hardcoded in ldc2 ?
No, but there's a wasm section in `etc/ldc2.conf`, defaulting to `-link-internally` and some linker flags, to make it work out of the box for most users. Please don't abuse an announcement thread for questions which are unrelated to the new release.
Aug 22
parent Dakota <dakota gmail.com> writes:
On Thursday, 22 August 2024 at 13:03:25 UTC, kinke wrote:
 On Thursday, 22 August 2024 at 10:50:44 UTC, Dakota wrote:
 Is this hardcoded in ldc2 ?
No, but there's a wasm section in `etc/ldc2.conf`, defaulting to `-link-internally` and some linker flags, to make it work out of the box for most users. Please don't abuse an announcement thread for questions which are unrelated to the new release.
Thanks for tips. will not post problem here anymore.
Aug 22