Andrew Noyes
991733a7fb
Disable alignment-requiring instructions until #1434 is resolved
2019-12-05 15:11:10 -08:00
Andrew Noyes
1721658210
Ignore -fsanitize=alignment for UBSAN
...
Until we fix all occurrences
2019-12-02 16:20:06 -08:00
Andrew Noyes
4022ca1381
Add USE_UBSAN cmake option
2019-12-02 16:20:06 -08:00
Andrew Noyes
30908b0bb1
Ignore -fsanitize=alignment for UBSAN
...
Until we fix all occurrences
2019-11-26 19:34:44 -08:00
Markus Pilman
653b180004
make it work if external dir has trailing /
2019-11-08 23:13:32 +00:00
Markus Pilman
94791fbd12
remove this functionality from Windows
...
Windows file paths are a pain to work with. Currently I don't know
of anyone who needs this feature on Windows - so I just remove it there
2019-11-08 22:21:47 +00:00
Markus Pilman
01c2676152
Add feature to add external dependencies to test package
2019-11-08 22:15:38 +00:00
Markus Pilman
d0d036b3a7
Add cmake command to package tests
2019-11-08 21:39:21 +00:00
Andrew Noyes
b893374c68
Add -Wno-attributes for gcc
2019-10-25 10:42:22 -07:00
Evan Tschannen
3325980c03
Merge branch 'release-6.2'
...
# Conflicts:
# CMakeLists.txt
# documentation/sphinx/source/release-notes.rst
# fdbserver/DataDistribution.actor.cpp
# fdbserver/OldTLogServer_6_0.actor.cpp
# fdbserver/TLogServer.actor.cpp
# fdbserver/WorkerInterface.actor.h
# fdbserver/worker.actor.cpp
# versions.target
2019-10-24 17:38:15 -07:00
mpilman
a79757a788
Fix compiler errors on Catalina
...
Fixes #2263
2019-10-21 11:15:37 -07:00
A.J. Beamon
ecad374fdb
Merge pull request #2095 from atn34/fix-actorcompiler-dep
...
Depend on actorcompiler.exe, rather than target
2019-10-03 09:56:49 -07:00
Meng Xu
d0147e5e5d
Merge branch 'release-6.2' into mengxu/merge-release620-to-master-v3
...
Resolved Conflicts:
documentation/sphinx/source/release-notes.rst
fdbserver/DataDistribution.actor.cpp
versions.target
2019-10-02 13:22:56 -07:00
Evan Tschannen
b784115f14
Merge pull request #2152 from atn34/use-ubsan
...
Add USE_UBSAN cmake option
2019-10-02 10:13:58 -07:00
Andrew Noyes
c967fa55cc
Add USE_UBSAN cmake option
2019-09-26 13:44:28 -07:00
Alvin Moore
f13039e6d4
Switched to using CMAKE_CXX_STANDARD for setting c++17
2019-09-24 11:22:24 -07:00
Alvin Moore
9ae1125a85
Only enable `no-register ` option if ccache is enabled because of ccache problem
2019-09-24 11:22:24 -07:00
Alvin Moore
c447d5999d
Added support to allow USE_LIBCXX to be enabled via environmental variable
...
Changed use of '-std=c++17)' to setting the CXX standard via CMAKE_CXX_STANDARD keyword
Added c++ library for linking
Added compilation options to ignore certain command parameters when using CCACHE due to ccache bug
2019-09-24 11:22:24 -07:00
Chris Donati
8b97bf2b2c
Remove vendored argparse installation references
2019-09-17 18:42:36 -07:00
Andrew Noyes
ea89f75446
Depend on both custom_target and generated file
...
https://samthursfield.wordpress.com/2015/11/21/cmake-dependencies-between-targets-and-files-and-custom-commands/
sheds some light.
2019-09-12 14:03:14 -07:00
Alvin Moore
e59fb55342
Fixed space vs tab
2019-09-12 11:56:03 -07:00
Alvin Moore
b765e73202
Ensured that using DEFAULT for USE_LD does not result in error
2019-09-12 11:56:03 -07:00
Alvin Moore
e741ad299b
Added support for using different linkers within make projects
...
Better cmake support for linkers
2019-09-12 11:56:03 -07:00
Alvin Moore
443d5ffa41
Added support for specifying the build linker by environmental variable
...
Added support for specifying the BFD linker
2019-09-12 11:56:03 -07:00
Andrew Noyes
0443cf89ea
Depend on actorcompiler.exe, rather than target
...
Before, changing the actor compiler would not cause actor
files to get recompiled. Fix that.
2019-09-12 07:43:26 -07:00
Alvin Moore
bb40023a4e
Merge pull request #1903 from AlvinMooreSr/cmake-lld
...
Allow Linker Specification Via Environmental Variable
2019-08-21 10:23:17 -07:00
Alvin Moore
1aa69b0baf
Fixed space vs tab
2019-08-20 16:35:41 -07:00
Alvin Moore
7a88a850c5
Ensured that using DEFAULT for USE_LD does not result in error
2019-08-20 16:10:18 -07:00
Andrew Noyes
34dee5f9e3
Pass -Wno-unknown-attributes only for IDE
2019-08-16 09:24:57 -07:00
Andrew Noyes
e4de4783bf
Add [[flow_allow_discard]]
2019-08-16 09:24:57 -07:00
Andrew Noyes
1a0ab7854e
Omit ActorFuzz etc from OPEN_FOR_IDE build
2019-08-16 09:24:57 -07:00
Andrew Noyes
a8cdcff0c2
Change --disable-actor-without-wait-warning to --disable-diagnostics
...
We probably just want to disable all actor diagnostics for the flow test
files.
Also add --generate-probes to the help text
2019-08-16 09:24:57 -07:00
Andrew Noyes
b17ad0ad64
Enable -Wunused-value
2019-08-16 09:24:57 -07:00
negoyal
fe53b5e7a7
Add a parameter to enable/disable valgrind for ctest.
2019-08-15 11:56:34 -07:00
mpilman
7d247af500
Two minor bug fixes from recent optimizations
2019-07-31 19:14:11 -07:00
Alvin Moore
ef9187446c
Merge pull request #1882 from mpilman/bug/libexec-tgz
...
Put fdbmonitor into `sbin` dir in tgz-package
2019-07-31 14:27:07 -07:00
mpilman
058f21b0fc
fixed merge conflicts
2019-07-30 18:36:10 -07:00
mpilman
b6440c7781
added flamegraph util
2019-07-30 18:36:10 -07:00
mpilman
b7df7f3549
compatability with older cmake versions
2019-07-30 18:36:10 -07:00
mpilman
4dd219f55b
made probes follow c naming rules
2019-07-30 18:36:10 -07:00
mpilman
9b96d8c166
a step further to uniqueness
2019-07-30 18:36:10 -07:00
mpilman
8eb06f7ab4
Only generate probes where it is supported
2019-07-30 18:36:10 -07:00
mpilman
b81a4ef6a2
clang+libc++ support on linux + dtrace probes
2019-07-30 18:36:10 -07:00
Alvin Moore
397ad77532
Added support for using different linkers within make projects
...
Better cmake support for linkers
2019-07-29 16:41:42 -07:00
Alvin Moore
e52d34e93a
Added support for specifying the build linker by environmental variable
...
Added support for specifying the BFD linker
2019-07-26 08:49:56 -07:00
A.J. Beamon
a92b6cd3d1
Merge branch 'master' into add-cache-memory-parameter
...
# Conflicts:
# documentation/sphinx/source/release-notes.rst
2019-07-25 13:41:57 -07:00
Andrew Noyes
3d2f35eec6
Fix a cmake typo
...
This allows a few more files to get type checked during an OPEN_FOR_IDE
build
2019-07-23 15:12:47 -07:00
A.J. Beamon
94be9560ea
Add cache_memory parameter to fdbserver to control the size of the (4K) page cache. Change the default slighty from 2000 MiB to 2GiB.
2019-07-23 15:05:21 -07:00
mpilman
23d2c58446
Put fdbmonitor into `sbin` dir in tgz-package
...
Fixes #1753
2019-07-23 09:40:33 -07:00
mpilman
1ac2d01b03
Merge remote-tracking branch 'upstream/master' into flatbuffers-fixes2
2019-07-18 09:50:08 -07:00
Alvin Moore
b9e938972c
Merge pull request #1719 from mpilman/features/static-libc++
...
statically link libstdc++ on Linux and remove std::variant
2019-07-16 21:00:02 -07:00
Evan Tschannen
2520b69803
Merge pull request #1832 from dyoungworth/bugFix
...
Fix ctests so each restart test has a seed unique to the first test
2019-07-16 16:43:17 -07:00
mpilman
b18666d942
statically link libstdc++ on Linux and remove std::variant
...
this will hopefully fix #1610
2019-07-16 14:53:16 -07:00
Markus Pilman
520f552082
Update cmake/ConfigureCompiler.cmake
...
Co-Authored-By: A.J. Beamon <ajbeamon@users.noreply.github.com>
2019-07-15 15:16:43 -07:00
dyoungworth
baf8e020d1
use one index to track tests in ctest
2019-07-15 14:52:24 -07:00
Andrew Noyes
274cb40eb8
Run tests under valgrind when USE_VALGRIND
2019-07-11 23:03:31 -07:00
dyoungworth
62d7ee9424
Fix ctests so each restart test has a seed unique to the first test
...
and any other test
2019-07-11 09:56:51 -07:00
mpilman
23963328cc
Compile relative paths into the debug info
...
This is a suggestion to resolve #1780
This change introduces a new cmake flag `RELATIVE_DEBUG_PATHS`.
If this flag is set or FDB is compiled with `-DFDB_RELEASE=ON`,
the resulting binary will have debug information using relative
file paths to source files. This simulates the behavior of the
old build system but might break local debugging (making the
debugger aware of build and source directory will be required).
2019-07-09 12:11:51 -07:00
Jingyu Zhou
e2d7929b73
Remove redundant actor compiler flags.
2019-06-30 08:25:53 -07:00
Andrew Noyes
3a246c1d25
Remove -fdiagnostics-color=always
...
This way you can run with -DCMAKE_COLOR_MAKEFILE=0 in CI and not get
garbled escape characters in your log
2019-06-28 17:46:47 -07:00
Alex Miller
30b27349a7
Fix addFdbTest
2019-06-25 21:57:09 -07:00
Alvin Moore
8ff5150470
Merge pull request #1636 from atn34/export-libfdb_c
...
Export libfdb c
2019-06-24 13:08:41 -07:00
mpilman
ab019fbe41
More minor fixes, removed snapshots
2019-06-20 14:28:31 -07:00
mpilman
844dd60202
FDB compiling with intel compiler
2019-06-20 09:29:01 -07:00
mpilman
6f52059750
Fix backtraces
...
pass -fno-omit-frame-pointer as we otherwise see broken back traces.
This should fix #1631 as well.
2019-06-18 15:33:12 -07:00
Evan Tschannen
20e3edeb0a
Merge branch 'release-6.1'
...
# Conflicts:
# documentation/sphinx/source/release-notes.rst
# fdbserver/storageserver.actor.cpp
# versions.target
2019-06-14 12:42:59 -07:00
mpilman
4c62458172
Make valgrind work on Fedora 30
2019-06-11 10:27:08 -07:00
mpilman
8590cd4286
Add libc++ support for non-MacOS
2019-06-10 17:34:03 -07:00
Andrew Noyes
c9dc2f98f0
Make pkg-config look more like example in man page
2019-06-09 15:22:06 -07:00
Andrew Noyes
f5e7b8b165
Support pkg-config
2019-06-09 15:21:36 -07:00
Andrew Noyes
9af6326e1b
Make find_package work
2019-06-09 15:21:36 -07:00
Andrew Noyes
882523330c
include(/path/to/cmake/file) now works for fdb_c
2019-06-09 15:21:36 -07:00
Andrew Noyes
cabe41626c
Prepare for exporting fdb_c
2019-06-09 15:21:36 -07:00
Andrew Noyes
2b07a0559e
Install headers in foundationdb dir
2019-06-09 15:21:36 -07:00
Andrew Noyes
8e0cbd299b
Use 'map' for finding install paths
2019-06-09 15:21:36 -07:00
Alvin Moore
4e99bebb18
Added support for enabling ccache by environmental variable
2019-06-06 08:54:31 -07:00
Alex Miller
77697666e6
Make USE_CCACHE=ON print an error if ccache is not found
2019-06-05 11:46:41 -07:00
Alex Miller
78137c9ae8
Add a cmake flag to enable ccache use by default.
2019-06-05 11:46:41 -07:00
sramamoorthy
8370871e4c
stale RESTORE option related code removed
2019-05-28 22:07:46 -07:00
sramamoorthy
281c785f94
'--restoring' cmd line arg removed for fdbserver
...
'--restoring' command line option was introduced to indicate
simulated fdbserver to restore from snapshot and restart the cluster.
As part of this change that option is removed and restore
information is stored in the restartInfo.ini.
2019-05-28 22:07:46 -07:00
sramamoorthy
4bc4c615da
exec op to all tlog, restore change in test &other
...
- exec operation to go to all the TLogs
- minor bug fix in tlog
- restore implementation for the simulator
- restore snap UID to be stored in restartInfo.ini
- test cases added
- indentation and trace file fixes
2019-05-28 22:07:46 -07:00
sramamoorthy
69edefe68b
Snapshot based backup and resotre implementation
2019-05-28 22:07:46 -07:00
Austin Seipp
ee1e3f620a
cmake: add support for choosing 'ld' via -DUSE_LD
...
This introduces a new USE_LD cached variable which can be set to one of
three values: LD, GOLD, or LLD. In the latter two cases, we propagate
the -fuse-ld={gold,lld} option to the compiler. The default case
defaults to whatever the ordinary system linker is, i.e. it does
nothing.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-15 08:33:36 -10:00
mpilman
69fa3d3903
fixed compilation issues after rebase
2019-05-13 14:15:23 -07:00
mpilman
8bbd28315e
Added Object serializer (does not yet compile)
2019-05-13 14:15:22 -07:00
mpilman
57db135858
Use productbuild instead of PackageMaker on MacOS
...
fixes #1547
fixes #1549
2019-05-11 14:42:48 -07:00
Evan Tschannen
22499666d0
Merge branch 'release-6.1'
...
# Conflicts:
# documentation/sphinx/source/release-notes.rst
# fdbserver/LogRouter.actor.cpp
# flow/Trace.cpp
# versions.target
2019-05-08 18:19:35 -07:00
Austin Seipp
084c049e64
cmake: require mcs, not dmcs, and drop dmcs support
...
dmcs was noted as deprecated in its startup message script many years
ago (2016), and dmcs itself was *actually* deprecated even years before
that -- 'dmcs' itself only executes 'mcs' with the .NET 4.0 SDK enabled
anyway.
Since CMake will be the new primary build system, let's go ahead and
drop support for dmcs entirely in this setup.
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-07 16:57:56 -10:00
Austin Seipp
8f98104f92
cmake: echo versions.h target command if VERBOSE=1
...
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2019-05-07 16:54:05 -10:00
Alvin Moore
085a9242e4
Changed specification of the path to the License.txt file since previous value resulted in search at top level (/) directory.
2019-05-03 00:12:07 -07:00
Alvin Moore
f308549be7
Commented out Readme file for mac os until working within packaging
2019-05-02 23:45:16 -07:00
Alvin Moore
345e8496ab
Fixed the cmake package vendor and email information in order to prevent cpack errors
2019-05-02 22:14:18 -07:00
Alvin Moore
28d96fe612
Merge pull request #1470 from mpilman/fixes/windows-parallel-build
...
Don't pass options file to coverage tool
2019-04-25 12:02:10 -07:00
Alvin Moore
8badc2e505
Merge pull request #1338 from mpilman/features/stripped-binaries
...
Strip debug symbols with `make packages`
2019-04-25 12:02:10 -07:00
mpilman
33b6e4ec3e
Add /MP option to compiler to allow for more parallelism
2019-04-17 16:13:34 -07:00
mpilman
8ef453eb2e
Don't pass options file to coverage tool
...
This hopefully fixes a weird msbuild issue where files are generated
more than once. This issue is described here:
https://gitlab.kitware.com/cmake/cmake/issues/16767
This workaround makes coverage_tool not to use the generated options
files, which hopefully will result in msbuild not trying to generate
these files more than once.
2019-04-17 12:10:51 -07:00
Andrew Noyes
6207d724f8
Fix all -Wunused-variable warnings
2019-04-15 18:13:00 -07:00
Evan Tschannen
cd5c9d91fa
Merge pull request #1443 from etschannen/master
...
Merge 6.1 into master
2019-04-10 17:43:07 -07:00
Evan Tschannen
21c0ba555c
Merge branch 'release-6.1'
...
# Conflicts:
# documentation/sphinx/source/release-notes.rst
# versions.target
2019-04-08 18:38:42 -07:00
Alex Miller
ee7822f032
Merge pull request #1412 from atn34/fix-sandbox-port
...
Fix port to match sandbox foundationdb.conf
2019-04-03 19:29:51 -07:00