News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

LLVM Clang 10 no longer supports -Wl,--dll

Started by gh_origin, December 02, 2020, 05:15:10 PM

Previous topic - Next topic

oBFusCATed

Regexes aren't good for this kind of checks.
We need something like https://cmake.org/cmake/help/latest/command/if.html?highlight=version_less
But I suppose it is fine if we drop older versions of clang. :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Miguel Gimenez

EvalXMLCondition() can be easily expanded to evaluate this kind of conditions, adding p.e. "minimum" or "lessthan" verbs.

oBFusCATed

I know, I don't have the time to do it. If you're interested post patch, if not post a patch which drops the old version, I guess.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

killerbot

I would drop support for old clang, by the way, most recent is clang11.

oBFusCATed

Yeah, this is easy, but I'm sure this feature would be useful for other places.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Miguel Gimenez


gh_origin

Quote from: Miguel Gimenez on December 06, 2020, 01:56:45 PMI don't have Clang.

If you're on Linux, it's easy. If if you're on Windows, you can use my Clang:

https://app.box.com/s/8i0tovgsr354brkcwumus0nzfw1heigg

And sorry everyone, it's my mistake. The Clang version I shared through out the forum is not Clang 10, it's Clang 11 indeed. So I'm not sure whether it's Clang 11 or Clang 10 that dropped supports for -Wl,--dll.

You could get Clang 10 here:

https://app.box.com/s/9gs0idab4ui031043go90s1819uonkop

gh_origin

Quote from: oBFusCATed on December 06, 2020, 04:06:41 PM
But I suppose it is fine if we drop older versions of clang. :)

No. The oldest version of Clang I have seen still being used is Clang 7 (on Linux). I also saw Clang 3.5 still floated around on some organizations. It's not unbelievable, though. Since in my place they only tried to conform to C++11. Newer language standards are not considered. So if old compilers have complete support for C++11, it's no reason to upgrade to new compilers, which most of time caused more problems than it worth.

gh_origin

Quote from: killerbot on December 06, 2020, 08:17:39 PM
I would drop support for old clang, by the way, most recent is clang11.

Most Linux distributions don't ship with latest Clang. The oldest Clang I saw still in use is Clang 7 (I don't remember which distributions, but it seemed to be some kind of LTS of Debian or Ubuntu).

BTW, why no one consider my solution: two sets of XMLs, one for old Clang, one for new Clang? I have posted about that many times on this thread but no one cares.

stahta01

Two files is twice the effort to maintain as one file.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Quote from: gh_origin on December 12, 2020, 03:46:18 PM
BTW, why no one consider my solution: two sets of XMLs, one for old Clang, one for new Clang? I have posted about that many times on this thread but no one cares.
Because they easily get out of sync, they are harder to maintain and after all we need this version checking feature anyway. I'll if I can review the Miguel's patch.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

gh_origin

Quote from: oBFusCATed on December 13, 2020, 01:06:54 PM
Quote from: gh_origin on December 12, 2020, 03:46:18 PM
BTW, why no one consider my solution: two sets of XMLs, one for old Clang, one for new Clang? I have posted about that many times on this thread but no one cares.
Because they easily get out of sync, they are harder to maintain and after all we need this version checking feature anyway. I'll if I can review the Miguel's patch.

I understand. Thanks.