Commit Graph

387 Commits

Author SHA1 Message Date
Michael
8c570653ee
Refactor top level cmake file into multiple components 2019-04-30 00:48:48 +01:00
Michael
0b4d787042
More work on router docker image
- Multi-stage docker build (final image only 15MB!)
- Build in release mode
    - Fix bug with release mode
    - Fix compiler being dumb AF
    - Disable FORTIFY for now
- Enable LTO when making a staticly linked release
- Fix some gcc specific warnings
- Refactor cmake stuff into multiple files
2019-04-28 17:04:52 +01:00
Michael
9ee525a006
Fix shadowing warnings 2019-04-26 00:21:19 +01:00
Michael
4143472a17
Add cmake module to target a library as 'system', and fix a few warnings 2019-04-25 00:27:31 +01:00
Rick V
4c4efd1aaa
irrelevant on Microsoft C++ 2019-04-22 18:05:57 -05:00
Rick V
01ec1cc61c
fix windows (#535) 2019-04-19 13:28:03 -05:00
michael-loki
0195152e05 Allow builds on MSVC (#518)
* Import cxxopts to replace getopts usage

* Add visual studio build things

* Fixup abseil build parts

* Replace __attribute__((unused)) with ABSL_ATTRIBUTE_UNUSED

* Fixup minor windows build issues

* Replace getopts usage

* Temporarily fixup .rc files

* More minor windows fixes

* Get a working build

* Revert .rc files

* Revert changes to nodedb
2019-04-19 13:24:33 -05:00
Jeff Becker
2c5fa94170
fix freebsd build 2019-04-19 09:31:33 -04:00
Rick V
853d19209c
Revert "unbreak windows target"
select 64-bit target by default (since normal devs REEEEEEEE at the sight of 4 byte ptrs)
pretty much every _other_ linux/unix has a c++17 windows compiler

This reverts commit a844c61049.
2019-04-11 10:17:58 -05:00
Jeff Becker
a844c61049
unbreak windows target 2019-04-10 11:53:10 -04:00
Jeff Becker
3da6551e82
make android compile 2019-04-08 11:54:19 -04:00
Jeff Becker
2edf1da819
add more android stuff 2019-04-08 10:27:55 -04:00
Jeff Becker
e178a70929
use shared_ptr for event loop 2019-04-08 08:01:52 -04:00
Michael
25f10d5b11
Fix more address sanitiser issues 2019-04-02 10:03:53 +01:00
Michael
6b5a688e08
Fix Catalog.Iterator test failure 2019-03-29 22:14:22 +00:00
Rick V
07e5978144
only pick one event loop on sol2 2019-03-26 21:20:58 -05:00
Rick V
bbba2c0eea
improve windows select loop
add generic svr4 poll(2) event loop
2019-03-26 19:56:34 -05:00
Michael
f2c5d32399
Metric collection subsystem 2019-03-25 20:36:23 +00:00
Rick V
490f3f31d0
minimal build system plumbing for backports to oracle solaris 2019-03-25 12:03:56 -05:00
Rick V
abb9284167
add sun link libs 2019-03-25 12:03:53 -05:00
Rick V
2e1b2ff8b1
abseil should pick up all of our compile flags (and stop on warnings if enabled), temp disable tuntap on Solaris 2019-03-25 12:03:53 -05:00
Rick V
87cebd9ba6
port abseil-cpp to Solaris 2.x and legacy compiler
fuck oracle with a rusty knife, we only support compilers with a full implementation of G++ (so, basically, only clang)
2019-03-25 12:03:52 -05:00
Rick V
67845e342a
distinguish good solaris from bad solaris 2019-03-25 12:03:52 -05:00
Rick V
866643f099
public releases should run reasonably well on most
devices in spite of the buiild system
currently, the instruction scheduling is tuned for the AMD K10 uarch, which is the CPU
of the unix build agent
2019-03-20 21:13:14 -05:00
Rick V
be5e70f9eb
update clang bits for release 2019-03-18 23:09:29 -05:00
Rick V
072ff9a50e
finally make -WX/-Werror optional 2019-03-18 19:22:37 -05:00
Rick V
8443c5ab8c
Support abseil on i686-pc-winnt-gnu 2019-03-18 16:13:09 -05:00
Rick V
53f7360094
added warning for AMD users 2019-03-18 16:13:09 -05:00
Rick V
61fb9a9c82
added some notes to gear up for the #371 putback by @michael-loki
moved platform-specifc stuff *to* platform specifc lib
removed -Wno-format on windows and *actually* turn on proper format checking
here using compiler-specifc extension for C99
2019-03-18 16:13:08 -05:00
Rick V
aab8167408
remove AMD FPU hack, remove FPU opts for crypto code in debug mode
see https://www.digitaltrends.com/computing/ryzen-amd-bios-fix-fma3-crash/
AMD has released a fix for Zen and later
2019-03-18 16:13:08 -05:00
Jeff
a79f27cfd0
Merge pull request #395 from majestrate/staging
lokinet rpc use http digest auth instead of basic auth
2019-03-13 16:21:14 -04:00
Jeff Becker
990049f423
make rpc do basic auth and shit like that 2019-03-13 16:01:10 -04:00
michael-loki
8ada001bc9
Remove negative thread safety warning flag
This is experimental, and has a bunch of false positives.
2019-03-12 10:13:33 +00:00
Jeff Becker
734a5b5fae
more 2019-03-11 09:01:43 -04:00
Jeff Becker
2218749134
Merge remote-tracking branch 'origin/staging' into staging 2019-03-07 17:58:29 -05:00
Jeff Becker
6a09348c47
today's work 2019-03-07 17:53:36 -05:00
Jeff
1a09a12ee0
Merge branch 'staging' into absl_mutex 2019-03-05 17:06:23 -05:00
Michael
61f3273dc4
Add threading annotations and fix potential deadlocks 2019-03-04 00:03:52 +00:00
Michael
c5a129ddff
Convert to use abseil synchronisation primitives 2019-03-03 21:20:38 +00:00
Michael
93399fdbb4
Make nlohmann::json part of the build 2019-03-02 02:32:18 +00:00
Michael
c6e6bdb90f
Fix for windows just being the Worst 2019-02-20 22:09:29 +00:00
Michael
4132f883a7
Make libabyss mandatory 2019-02-20 22:08:49 +00:00
Michael
a0125ffe86
Move abyss/json to llarp/util/json 2019-02-15 23:43:26 +00:00
Jeff Becker
1d958d95de
* make rpc compile right
* make link sessions introspectable
* make utp write buffers fully flush each tick
2019-02-15 17:19:19 -05:00
Michael
90373b806c
Fix log tag after cmake changes 2019-02-15 20:49:10 +00:00
Jeff
cdc19c52fa
Merge branch 'staging' into abstract_router_replacement 2019-02-15 12:10:18 -05:00
Michael
048fa83c39
Finish replacement of Router with AbstractRouter 2019-02-14 22:31:31 +00:00
Rick V
e9048559b2
late-breaking hotfix patch for libabyss-win32 2019-02-14 15:10:56 -06:00
Rick V
1bb441a367
fix clang cross-compile nt shared lib 2019-02-14 14:30:18 -06:00
Michael
ebf2800c3f Fixup windows 2019-02-14 00:22:21 +00:00