summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-11Fix march=native not being enabledTiger Wang1-2/+11
* LINUX doesn't exist apparently, use UNIX instead + Add some platform-specific logic to determine whether to use mcpu or march - Remove duplicated compile option comments + Add STATUS level to messages
2021-02-10MSVC warningsTiger Wang1-1/+10
2021-01-26Fix debug macro situation (#5114)Tiger Wang1-9/+0
Use the standard NDEBUG.
2020-12-18Warnings improvementsTiger Wang1-16/+20
* Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality * Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already * Reduced GetStackValue verbosity + Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness + Give SettingsRepositoryInterface a move constructor to simplify main.cpp code - Remove do {} while (false) construction in redstone handler
2020-10-05Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)peterbell101-1/+14
* 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-07-13Reduce buildlogspamTiger Wang1-1/+4
- Turn off unused parameter warning
2020-07-12Address commentsTiger Wang1-9/+9
2020-07-12FunktionsTiger Wang1-42/+37
2020-07-12More CMake cleanupTiger Wang1-230/+72
2020-05-16Upgrade to C++17 [CMake] (#4717)Tiger Wang1-0/+8
* Make our CMake slightly less insane
2020-05-09Enable C++17 in buildPeter Bell1-15/+0
2020-05-05Update fmt to 6.2.0 (#4718)peterbell101-3/+3
* Update fmt to 6.2.0
2018-10-15Support clang 10.0 (appleclang) and higher (#4302)Bond-0091-2/+2
2018-01-03Add the fmt library (#4065)peterbell101-1/+1
* 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.
2017-08-24Use target_compile_options instead of variables to add -fomit-frame-pointer to mbedtlspeterbell101-7/+0
2017-08-18Add link to knowledge base.peterbell101-0/+2
2017-08-18SetFlags: Omit frame pointer in C arm debug buildspeterbell101-0/+1
Fixes mbedtls build failure with inline asm.
2016-12-12Documented steps for compilationTiger Wang1-4/+4
As requested by @madmaxoft.
2016-12-12Use CMake's Android generators to crosscompileTiger Wang1-1/+8
2016-07-30Change CROSSCOMPILE flag to NO_NATIVE_OPTIMIZATION (#3279)Alexander Harkness1-1/+5
* 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-01-06Fixed Clang warnings.Mattes D1-0/+1
2016-01-01Renamed leftover strings to Cuberite / Server, as needed.Mattes D1-1/+1
Also upgraded the user setting file for MSVC to 2013.
2015-12-30Clang-3.8: Added ignore flag for double promotionLukas Pioch1-0/+6
2015-12-18Working coverage buildtycho1-0/+1
2015-11-19Fix musl + clang 3.6 compile errorworktycho1-0/+3
2015-09-26Added the _UNICODE flag on WindowsTiger Wang1-0/+3
2015-09-25Fixed flags for ARM native debug build.Mattes D1-9/+13
Also fixed indentation style to all-tabs.
2015-08-22Revert Clang compiler flag that breaks OS X buildMatti Hänninen1-1/+0
2015-08-20Use container-based infrastructure for TravisTiger Wang1-0/+7
2015-07-24Fix compilation on ARMv7.Fixes #2387.Zack Piper1-0/+4
2015-06-04Skip unknown cflag for Apple clang & remove cSemaphoreCengiz Can1-5/+7
2015-05-30Moved shared cmake flags to the CMAKE_C_FLAGS vartycho1-8/+2
2015-05-25Support building on FreeBSDlinnemannr1-0/+5
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-24Fix clang 3.6 flags to only be used in clang 3.6tycho1-10/+14
2015-05-24Made -Weverything an error.tycho1-1/+1
2015-05-23Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch1-0/+4
2015-05-23Added pthread as a link flag.tycho1-1/+2
2015-05-19Make -Werror disabling file onlytycho1-11/+23
Ad fix a load of warnings
2014-11-23Update GCC on TravisTiger Wang1-24/+11
2014-10-09Fix flag name in gcc 4.6 and earlierworktycho1-8/+32
2014-10-09Enabled C++11 in gccworktycho1-11/+9
2014-09-10Cleaned up flagsTycho1-5/+4
2014-09-06Update SetFlags.cmakeworktycho1-1/+0
2014-09-06Added workaround for clang versionTycho1-4/+15
2014-09-06bumped cmake version min and fixed clang supportTycho1-2/+2
2014-09-06Wrong cmake varworktycho1-2/+2
2014-09-06Improve error messageworktycho1-2/+2
2014-09-06Should now compile in clang 3.0worktycho1-5/+16
2014-08-10First Implementatation of new Loggin frameworkTycho1-0/+2
2014-07-26Removed the new old-style-cast warning from error treatmentarchshift1-1/+1
This is a new warning included in clang that ships with OS X 10.10 Yosemite.
2014-07-24Made redundant semi not an error, fixed one more.archshift1-1/+1
2014-07-24Removed redundant semicolons and re-added warningarchshift1-7/+7
2014-07-03SetFlags.cmake: don't use ${} expansion on if STREQUALarchshift1-1/+2
See http://stackoverflow.com/questions/19982340/cmake-compare-to-empty-string-with-strequal-failed
2014-06-27CMake: pthread is used only on Unix.madmaxoft1-4/+8
2014-06-27Added MSVC guardworktycho1-4/+6
2014-06-27Update SetFlags.cmakeworktycho1-1/+1
2014-06-27Update SetFlags.cmakeworktycho1-1/+1
2014-06-27CMake: Added log message for coverage.madmaxoft1-0/+1
2014-06-27Moved CodeCoverage into a separate cmake condition.madmaxoft1-2/+6
2014-05-28Fix cmake errors in msvcworktycho1-1/+5
2014-05-23Fixed profiling flags for MSVC.Mattes D1-2/+2
The profiler output contained no useful symbols before, because there were no symbols in the PDBs.
2014-05-10Maybe coverage working?Tycho1-32/+47
2014-04-26Needs the -stdlib linker flag too.archshift1-0/+1
2014-04-25Move to line 47.archshift1-3/+1
2014-04-25Use libc++ on OSXarchshift1-0/+3
Fixes issues with https://github.com/mc-server/MCServer/commit/f3dfc0349d7008efa50855c739d86918bdbf4a88 in XCode. Tested on Mac (Makefile and XCode) and Linux.
2014-04-22Revert moving gcc to g++11 in 18c3b1worktycho1-8/+0
2014-04-17Compile fix?Tiger Wang1-0/+8
2014-04-01Removed the exit-time-destructors flag from clang.madmaxoft1-1/+1
We don't care about exit-time destructors, at least for now.
2014-04-01Attempt at disabling the useless clang warnings.madmaxoft1-0/+1
Ref.: #846, #847
2014-03-14Added Noreturn attribtes to a couple of functions and made a missing noreturn an errorTycho1-1/+1
2014-03-14Disable global constructors and exit-time destructors warningsTycho1-2/+2
2014-03-14Made unreachable code an errorTycho1-1/+1
2014-03-14Fixed a couple of missing defsTycho1-1/+1
2014-03-11made format-nonliteral an errorTycho1-1/+0
2014-03-11Move commentTycho1-1/+1
2014-03-10Enable error on cast-align and unused macrosTycho1-1/+0
2014-03-09Only enable -Werror in gcc because gcc doesn't let you suppress enum missmatch warningsTycho1-2/+2
2014-03-09Treat enum missmatches as warnings for now as there is such a large number of them.Tycho1-1/+1
2014-03-09Globals.h is now warnings free again.Tycho1-1/+1
Also turned off Wpadded as it is indicates potental performance issues rather than potential bugs
2014-03-09Lots more warningsTycho1-0/+9
2014-03-09Enabled loads of clang warningsTycho1-0/+2
2014-03-09Turned off Wunused-parameterTycho1-1/+1
2014-03-08Disable -Werror on this branchworktycho1-1/+1
2014-03-07Turned on WerrorTycho1-1/+1
2014-03-07Fixed warningsTycho1-1/+1
2014-03-07Fixed clang compileworktycho1-1/+6
2014-03-07Only use fast-math in exesworktycho1-6/+3
2014-03-07Enabled -ffast-mathworktycho1-1/+6
2014-02-16Added -WextraTycho1-1/+1
2014-02-16Allow building MCADefrag at the same time as MCServerTycho1-105/+86
2014-02-16Added a seperate module for Setting flagsTycho1-0/+208