peterbell10
a9031b6bae
Fix cmake not adding Werror on clang, and _lots_ of warnings ( #4963 )
...
* Fix cmake not adding Werror on clang, and _lots_ of warnings
* WIP: Build fixes
* Cannot make intermediate blockhandler instance
* Tiger's changes
* Fix BitIndex check
* Handle invalid NextState values in cMultiVersionProtocol
Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
2020-10-05 10:27:14 +00:00
Tiger Wang
bd20afd6ce
Reduce buildlogspam
...
- Turn off unused parameter warning
2020-07-12 23:38:08 +01:00
Tiger Wang
4f85931c42
Address comments
2020-07-12 22:00:07 +01:00
Tiger Wang
2c0fc395ba
Funktions
2020-07-12 22:00:07 +01:00
Tiger Wang
6317176d7e
More CMake cleanup
2020-07-12 22:00:07 +01:00
Tiger Wang
9e8598fb1c
Upgrade to C++17 [CMake] ( #4717 )
...
* Make our CMake slightly less insane
2020-05-16 20:59:10 +01:00
Peter Bell
1123c95cf2
Enable C++17 in build
2020-05-09 20:37:16 +01:00
peterbell10
57952505e5
Update fmt to 6.2.0 ( #4718 )
...
* Update fmt to 6.2.0
2020-05-05 22:52:14 +01:00
Bond-009
6c3dd41717
Support clang 10.0 (appleclang) and higher ( #4302 )
2018-10-15 17:56:23 +01:00
peterbell10
757231cc6e
Add the fmt library ( #4065 )
...
* Replaces AppendVPrintf with fmt::sprintf
* fmt::ArgList now used as a type safe alternative to varargs.
* Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu.
* Adds FLOG functions to log with fmt's native formatting style.
2018-01-03 17:41:16 +00:00
peterbell10
7b3372ad38
Use target_compile_options instead of variables to add -fomit-frame-pointer to mbedtls
2017-08-24 14:03:42 +02:00
peterbell10
af1a0188ec
Add link to knowledge base.
2017-08-18 11:21:45 +01:00
peterbell10
217a4b3296
SetFlags: Omit frame pointer in C arm debug builds
...
Fixes mbedtls build failure with inline asm.
2017-08-18 11:21:45 +01:00
Tiger Wang
b9609c3b76
Documented steps for compilation
...
As requested by @madmaxoft.
2016-12-12 14:32:32 +00:00
Tiger Wang
8c6d0b51c7
Use CMake's Android generators to crosscompile
2016-12-12 14:32:32 +00:00
Alexander Harkness
9e52982f0e
Change CROSSCOMPILE flag to NO_NATIVE_OPTIMIZATION ( #3279 )
...
* Change CROSSCOMPILE flag to NOMARCHNATIVE.
The old name was confusing, the new name describes exactly what it does.
This fixes issue #3272
* Break configuration when using CROSSCOMPILE.
This stops any old build scripts from producing broken builds.
* Use NO_NATIVE_OPTIMIZATION rather than NOMARCHNATIVE.
Addresses @madmaxoft's concerns.
2016-07-30 14:22:18 +01:00
Mattes D
491dbda7d3
Fixed Clang warnings.
2016-01-06 16:20:12 +01:00
Mattes D
80e1eb37dd
Renamed leftover strings to Cuberite / Server, as needed.
...
Also upgraded the user setting file for MSVC to 2013.
2016-01-01 21:05:09 +01:00
Lukas Pioch
26f4b00960
Clang-3.8: Added ignore flag for double promotion
2015-12-30 15:39:00 +01:00
tycho
91d0abae4c
Working coverage build
2015-12-18 11:19:21 +01:00
worktycho
98d4695e58
Fix musl + clang 3.6 compile error
2015-11-19 21:32:13 +00:00
Tiger Wang
803c0c6965
Added the _UNICODE flag on Windows
2015-09-26 22:19:29 +01:00
Mattes D
2758756caa
Fixed flags for ARM native debug build.
...
Also fixed indentation style to all-tabs.
2015-09-25 07:38:51 +02:00
Matti Hänninen
f4cbfcdc1e
Revert Clang compiler flag that breaks OS X build
2015-08-22 22:41:14 +03:00
Tiger Wang
5751ba0c1c
Use container-based infrastructure for Travis
2015-08-20 16:15:55 +01:00
Zack Piper
2a3f0de94d
Fix compilation on ARMv7.Fixes #2387 .
2015-07-24 18:02:03 +00:00
Cengiz Can
c967698b2d
Skip unknown cflag for Apple clang & remove cSemaphore
2015-06-04 11:48:56 +03:00
tycho
d5c89eceb8
Moved shared cmake flags to the CMAKE_C_FLAGS var
2015-05-30 13:32:22 +01:00
tycho
e19693e529
Merge branch 'master' into PreventNewWarnings
...
Conflicts:
src/Inventory.cpp
2015-05-28 11:05:41 +01:00
linnemannr
5049fd0fbf
Support building on FreeBSD
...
SetFlags.cmake
Add -lexecinfo to linker flags for FreeBSD to resolve backtrace()
lib/sqlite/CMakeLists.txt
Define _XOPEN_SOURCE to 600 instead of __POSIX_VISIBLE to 200112 for
POSIX 1-2001 support. For POSIX standards, the _XOPEN_SOURCE define
controls the eventual value of __POSIX_VISIBLE. _XOPEN_SOURCE is defined
to 500 in sqlite.c if not already defined, which sets up _POSIX_C_SOURCE
and __POSIX_VISIBLE to the 199506 for POSIX.1c
lib/tolua++/CMakeLists.txt
src/CMakeLists.txt
Add /usr/local/lib to the library search path for FreeBSD builds
src/OSSupport/Errors.cpp
Correct the strerror_r() implementation determination to check whether
_GNU_SOURCE is defined, not what it evaluates to
2015-05-24 20:07:31 -06:00
tycho
51b4584b42
Fix clang 3.6 flags to only be used in clang 3.6
2015-05-24 15:22:55 +01:00
tycho
dae9e5792a
Made -Weverything an error.
2015-05-24 12:56:56 +01:00
tycho
81c0116cf1
Merge branch 'master' into PreventNewWarnings
2015-05-23 07:33:52 -07:00
Lukas Pioch
e30b2ed487
Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.
2015-05-23 16:28:37 +02:00
tycho
7a5c1d30f8
Added pthread as a link flag.
2015-05-23 11:53:49 +01:00
tycho
77f1f58c0a
Make -Werror disabling file only
...
Ad fix a load of warnings
2015-05-19 19:32:10 +01:00
Tiger Wang
e8e03e5df2
Update GCC on Travis
2014-11-23 14:21:44 +00:00
worktycho
c3479f7557
Fix flag name in gcc 4.6 and earlier
2014-10-09 10:07:58 +01:00
worktycho
5cf1ba092e
Enabled C++11 in gcc
2014-10-09 09:53:16 +01:00
Tycho
cf69ddcce1
Cleaned up flags
2014-09-10 19:49:52 +01:00
worktycho
22b4511640
Update SetFlags.cmake
2014-09-06 18:11:42 +01:00
Tycho
562b2d1d1d
Added workaround for clang version
2014-09-06 16:30:04 +01:00
Tycho
5fa206a420
bumped cmake version min and fixed clang support
2014-09-06 15:30:13 +01:00
worktycho
f7d06f093e
Wrong cmake var
2014-09-06 14:55:06 +01:00
worktycho
8b5ad667d9
Improve error message
2014-09-06 14:49:40 +01:00
worktycho
f22b9aa5f4
Should now compile in clang 3.0
2014-09-06 14:38:47 +01:00
Tycho
806d0936dc
First Implementatation of new Loggin framework
2014-08-10 19:34:11 +01:00
archshift
443112d70e
Removed the new old-style-cast warning from error treatment
...
This is a new warning included in clang that ships with OS X 10.10 Yosemite.
2014-07-26 03:34:23 -07:00
archshift
431d898a81
Made redundant semi not an error, fixed one more.
2014-07-24 11:24:22 -07:00
archshift
4191be7ddb
Removed redundant semicolons and re-added warning
2014-07-24 11:21:37 -07:00