Re: SIMD intrinsics in GDC

2016-02-13 Thread WebFreak001 via D.gnu

On Wednesday, 11 April 2007 at 01:50:56 UTC, David Friedman wrote:
Yes, these and other "target builtins" will be made available 
in the next release.


soo... when is it going to be released?


Re: gdc --version doesn't indicate which D front-end version it's compatible with

2022-02-22 Thread WebFreak001 via D.gnu

On Friday, 28 January 2022 at 17:42:25 UTC, singingbush wrote:
not sure where is best placed for this but on my Fedora system 
running `gdc --version` gives me pretty much the same output as 
`gcc --version`


GDC:

```
$ gdc --version
gdc (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  
There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE.

```

GCC:

```
$ gcc --version
gcc (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  
There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE.

```

It would be far more helpful if running `gdc --version` gave 
some indication of the version of D it's aligned to (which was 
2.076 last time I checked).


If you want to do this automated you can run

echo | gdc -xd -fsyntax-only -v -

see how code-d does it: 
https://github.com/Pure-D/code-d/blob/master/src/compilers.ts#L637


Then you can fetch from the output the GCC version, DMD-FE 
version and import paths using these regexes:


```js
const gdcVersionRegex = /^gcc version\s+v?(\d+(?:\.\d+)+)/gm;
const gdcFeVersionRegex = /^version\s+v?(\d+(?:\.\d+)+)/gm;
const gdcImportPathRegex = /^import path\s*\[\d+\]\s*=\s*(.+)/gm;
```


GDMD picking up wrong GDC

2023-05-04 Thread WebFreak001 via D.gnu
In GitHub Actions I installed `sudo apt install gdc-12` now 
inside Ubuntu 22.04, however `gdc` still seemed to be a small 
extra package that's symlinking gdc to gdc-11.


Now gdmd is picking up GDC 11 instead of GDC 12, causing issues 
in the build.


Is there a way to tell gdmd to use GDC 12? Right now I hacked 
around this by doing


```
sudo rm /usr/bin/gdc
sudo ln -s /usr/bin/gdc-12 /usr/bin/gdc
```

but if this wasn't a CI, I wouldn't really wanna do this.

Would it be possible to provide extra gdmd scripts like gdmd-12 
that pick gdc-12 on Ubuntu?


see commit 
https://github.com/dlang-community/libdparse/commit/03099519982c10b9d7831771bcb744f06b727400


Since this is manual DMD invocation, and not dub, I can't just 
specify gdc-12 as compiler.


Re: GDMD picking up wrong GDC

2023-05-07 Thread WebFreak001 via D.gnu

On Thursday, 4 May 2023 at 14:58:48 UTC, Iain Buclaw wrote:

On Thursday, 4 May 2023 at 13:05:07 UTC, WebFreak001 wrote:
In GitHub Actions I installed `sudo apt install gdc-12` now 
inside Ubuntu 22.04, however `gdc` still seemed to be a small 
extra package that's symlinking gdc to gdc-11.


Now gdmd is picking up GDC 11 instead of GDC 12, causing 
issues in the build.


Is there a way to tell gdmd to use GDC 12? Right now I hacked 
around this by doing




I imagine what you're seeing is gdmd using the correct version 
of the compiler, just not the one you wanted.


https://github.com/D-Programming-GDC/gdmd/blob/master/dmd-script#L71-L76


I have multiple GDCs installed through apt, how do I make gdmd 
pick the higher one (`gdc-12`) and not just `gdc`?