f269ef3f4f
cxx: only set GLIBCXX_DEBUG if using libstdc++
...
Some libraries detect the debug mode of the stdlib and try to integrate
with the system headers (eg, range-v3) which obviously doesn't work well
if we're using an alternative stdlib like clang's libc++.
2024-05-14 09:04:42 +10:00
4aa60cc306
cxx: enabled sized-deallocation on clang
2023-01-11 11:13:05 +10:00
1bfe9561d8
cxx: expose clang's stdlib argument as a cache variable
2023-01-11 09:31:27 +10:00
54f0855312
Use CMAKE_CURRENT_LIST_DIR for local includes to simplify usage
...
This means that we no longer need to modify the module path for CMake
before including the root script.
2022-06-15 10:46:52 +10:00
29b2a1539e
cxx: move to C++2b
2022-05-03 09:54:27 +10:00
ea804359fb
cxx: force use of DWARF4 for breakpad compatibility
2021-05-26 12:49:53 +10:00
a4b3a217d6
cxx: try to enable gold and lld for gcc and clang
2020-10-20 11:53:34 +10:00
13dc2ac513
cxx: use 'auto' argument for diagnostics-color
2019-11-04 11:26:04 +11:00
c767d8f047
cxx: add build-id as a link flag
2019-11-04 11:17:09 +11:00
4de013d8e3
Enable visibility-inlines-hidden
2019-10-31 17:03:51 +11:00
985fe7fe48
cxx: disable filesystem library discovery
2019-10-22 12:00:50 +11:00
00955b8920
nc_cxx: actually allow the empty library for stdfs detection
2019-06-28 10:24:23 +10:00
dc52274971
cxx: fix the path to the stdcxxfs test code
2019-06-20 11:45:58 +10:00
e46716472a
Revert "cxx: remove test for the filesystem library"
...
This reverts commit 874bbb2413
.
2019-05-06 13:02:15 +10:00
874bbb2413
cxx: remove test for the filesystem library
...
We no longer use compilers that rely on this library, and the 'null'
case in library detection was broken.
2019-05-05 09:17:49 +10:00
bf694b3085
cxx: use PIC by default so we can produce dynamic libraries
2019-03-03 13:00:27 +11:00
23b5facb81
cxx: print which c++fs libraries are being attempted
2019-02-02 15:01:27 +11:00
525f597d64
cxx: define _FILE_OFFSET_BITS=64
2019-01-04 17:18:07 +11:00
6b7a06ddb7
cxx: don't set stdc++fs globally
...
Linking to stdc++fs in the wrong order can produce an ICE under GCC.
Linking globally will place stdc++fs at the front of the library list
(which is the trigger for the ICE). We rely on the clients linking
manually where required.
2019-01-02 13:42:54 +11:00
7eb31caa22
cxx: add libcxx-7.0.0 library for std::filesystem
2018-10-15 17:16:26 +11:00
7694a39501
cxx: explicitly enable format macros
...
This is required to enable format functionality under win32
2018-08-13 14:55:45 +10:00
1c5ded53b3
cxx: update flags for gcc-8.1.0
2018-05-05 14:37:58 +10:00
efaf99ff60
cxx: attempt to enable coloured diagnostics on clang
2018-03-22 15:08:16 +11:00
b3d2938410
cxx: quote the filesystem libraries
2017-12-20 16:12:11 +11:00
157ff8962c
cxx: default to using libcxx where possible
...
using libcxx alleviates some compilation errors under newer clang and
c++17.
2017-08-07 12:58:10 +10:00
770bc543a6
cxx: detect clang library for std::filesystem
2017-05-16 16:59:19 +10:00
cec999bfdf
cxx: clear the default cmake cxxflags/cflags
...
cmake forces some values we don't want. it's better to start from
scratch.
2017-05-12 14:56:47 +10:00
bbe3b5a466
cxx: explicitly clear stdcxxfs library if not required
2017-02-16 19:42:51 +11:00
d106a052a1
nc: protect against multiple invokations
2017-01-25 18:46:41 +11:00
a5d2619f7d
cxx: unconditionally link to stdc++fs if found
2017-01-23 21:42:11 +11:00
576a112da8
cxx: add msvc c++ standard test
2017-01-23 14:55:37 +11:00
b389d86391
try to cache results as much as possible
2017-01-18 21:43:30 +11:00
566b98e5cb
nc_cxx: make stdc++fs discovery more robust
2017-01-17 21:28:04 +11:00
a57db559e9
initial import
2017-01-17 19:20:12 +11:00