Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] Remove delay in addrman.Select() and disable kmd seeds for asset chains #528

Closed
wants to merge 231 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
0278350
allow help text even during node warmup
jmjatlanta Jun 1, 2021
26843c9
wrap test chain funcs into class
jmjatlanta Jun 7, 2021
fd09a2d
document chainparams
jmjatlanta Jun 14, 2021
a305097
document KOMODO_CONNECTING
jmjatlanta Jun 14, 2021
c3ebdba
more documentation
jmjatlanta Jun 15, 2021
c3def98
clean up of db open code
jmjatlanta Jun 16, 2021
165bb0f
fix hang on shutdown
jmjatlanta Jun 16, 2021
16a3254
documentation of notarisationdb
jmjatlanta Jun 16, 2021
4d0063f
fix vector initialization lists
jmjatlanta Jun 17, 2021
803f247
Merge branch 'dev' into jmj_testutils
jmjatlanta Aug 3, 2021
684c275
Merge branch 'dev'
jmjatlanta Aug 9, 2021
7d7eabb
Find calls to CChain that are not locked
jmjatlanta Aug 27, 2021
0cba296
Add locks of cs_main
jmjatlanta Aug 27, 2021
186661c
Add AssertLockHeld to komodo_xxx
jmjatlanta Aug 27, 2021
777ee02
lock cs_main for TestBlockValidity
jmjatlanta Aug 27, 2021
eb1f5fe
cs_main already locked
jmjatlanta Aug 31, 2021
5fb10cd
Upgrade threadsafety.h to clang 13
jmjatlanta Sep 2, 2021
b06e900
Add annotations to CChain
jmjatlanta Sep 2, 2021
93218bf
fix clang warnings
jmjatlanta Sep 13, 2021
f8f5cee
Fix return value of is_STAKED
jmjatlanta Sep 13, 2021
417f5c3
Fix haraka warnings
jmjatlanta Sep 13, 2021
59fb0f9
fix ASSETCHAINS_ENDSUBSIDY
jmjatlanta Sep 13, 2021
72b8022
Fix more clang warnings
jmjatlanta Sep 13, 2021
eb2a18c
Increase heir test timeout
jmjatlanta Sep 14, 2021
a29cc24
test komodo_notarysinit
jmjatlanta Sep 16, 2021
0be5fca
Addl testing komodo_notarysinit
jmjatlanta Sep 16, 2021
549db0b
code cleanup
jmjatlanta Sep 17, 2021
4247895
code cleanup and comments
jmjatlanta Sep 17, 2021
acd2b3b
wait for mining threads to stop
dimxy Sep 23, 2021
24f7d50
convert staking array to vector (to correctly destroy members) and ma…
dimxy Sep 23, 2021
87ac53d
staking logging improved
dimxy Sep 23, 2021
dbbd274
Merge branch 'dev' into jmj_chainparams_doc
jmjatlanta Sep 24, 2021
88ca9f1
Merge branch 'dev' into jmj_issue_482
jmjatlanta Sep 24, 2021
09b3e96
Merge branch 'dev' into jmj_issue_483
jmjatlanta Sep 24, 2021
e2cf441
Remove LastTip()
jmjatlanta Sep 24, 2021
88ef4f6
Remove GetLastTipWithLock()
jmjatlanta Sep 24, 2021
822a3a0
Merge branch 'dev' into jmj_clang_warnings
jmjatlanta Sep 24, 2021
fdf44fd
fix test
jmjatlanta Sep 24, 2021
f582ad9
maxkp replaced with array.capacity
dimxy Sep 25, 2021
ba1b22a
'struct' eliminated
dimxy Sep 25, 2021
5098d67
unneeded memset removed
dimxy Sep 25, 2021
3e85aa3
Merge branch 'dev' into jmj_notary
jmjatlanta Sep 27, 2021
c3d6f34
disable tests (globals)
jmjatlanta Sep 27, 2021
da41f17
reset statics for testing
jmjatlanta Oct 1, 2021
f3809e9
Function declarations to appropriate .h
jmjatlanta Oct 4, 2021
50cc58b
remove externs
jmjatlanta Oct 6, 2021
9eb2eb1
comment komodo_validate_interest
jmjatlanta Oct 7, 2021
e8735fe
Document globals in komodo_globals.h
jmjatlanta Oct 7, 2021
69dc615
Switch to assetchain class
jmjatlanta Oct 8, 2021
2ba0a9d
reformat help msgs
jmjatlanta Oct 11, 2021
255153d
properly initialize event_pubkeys
jmjatlanta Oct 14, 2021
1faaf68
Document crosschain
jmjatlanta Oct 22, 2021
ef80962
Document Checkpoints
jmjatlanta Oct 25, 2021
c2c1b2b
Clean up importcoin
jmjatlanta Oct 25, 2021
f1d9d5c
Document MakeCodaImportTx
jmjatlanta Oct 25, 2021
42859e5
Add alert tests
jmjatlanta Oct 26, 2021
bc97c3b
fix pub key
jmjatlanta Oct 26, 2021
037d902
Merge branch 'jmj_test_cleanup' into jmj_testutils
jmjatlanta Oct 27, 2021
948988c
Remove temp file
jmjatlanta Oct 28, 2021
bae9e3a
properly shutdown tests
jmjatlanta Oct 28, 2021
324a3dd
Move zcash tests to komodo
jmjatlanta Oct 28, 2021
fad7afb
serialize block header size test
jmjatlanta Oct 28, 2021
42bec82
mempool tests
jmjatlanta Oct 28, 2021
6e1257d
PoW tests
jmjatlanta Oct 28, 2021
defe10d
PoW min difficulty test
jmjatlanta Oct 28, 2021
6a331b8
Remove unnecessary header
jmjatlanta Oct 28, 2021
58aeb73
add txid tests
jmjatlanta Oct 28, 2021
abe48f6
Add coin_tests
jmjatlanta Oct 28, 2021
e8d9f80
Begin tests of ConnectBlock
jmjatlanta Nov 3, 2021
432c57f
fix for running all tests
jmjatlanta Nov 3, 2021
e46aae1
make static adjustable for unit testing
jmjatlanta Nov 3, 2021
399f9fb
Merge branch 'jmj_build_fix' into jmj_testutils
jmjatlanta Nov 3, 2021
fc14310
More ConnectBlock tests
jmjatlanta Nov 4, 2021
528d8f6
fix mempool nullptr
jmjatlanta Nov 4, 2021
16291af
Replace ptr with ref
jmjatlanta Nov 5, 2021
cfe4608
test double-spend in same block
jmjatlanta Nov 5, 2021
11991b3
Document mempool funcs
jmjatlanta Nov 9, 2021
4d1376d
Merge branch 'jmj_build_fix' into jmj_testutils
jmjatlanta Nov 9, 2021
c096f6e
const in myAddtomempool
jmjatlanta Nov 9, 2021
4cf000a
reverse iterate
jmjatlanta Nov 10, 2021
6d62418
More block tests
jmjatlanta Nov 15, 2021
fd12fe5
one solution for testnet
jmjatlanta Nov 26, 2021
8c15474
Remove LastTip(), Remove GetTipWIthLock()
jmjatlanta Jan 14, 2022
56d57d4
addrman no lock in ctor
jmjatlanta Jan 14, 2022
fc4bfbc
DEBUG_LOCKORDER off
jmjatlanta Jan 20, 2022
95c9364
testnet currency unit
jmjatlanta Jan 20, 2022
cc589ab
set ASSETCHAINS_P2PPORT default
jmjatlanta Jan 20, 2022
13a149c
Adjust testnet genesis solution
jmjatlanta Jan 21, 2022
1b09677
Correct solution for testnet
jmjatlanta Jan 21, 2022
1981900
no checkpoint data for testnet
jmjatlanta Jan 21, 2022
b6a7cf4
added seed for testnet
jmjatlanta Jan 24, 2022
6d87cce
Notary tests
jmjatlanta Feb 2, 2022
24ddfca
nspv json resp buffer malloc'ed
dimxy Feb 3, 2022
d54fbe2
hardforks in own object
jmjatlanta Oct 13, 2021
ba97fc7
consolidate network differences
jmjatlanta Feb 15, 2022
bdedbd4
move genesis notaries to chainparams
jmjatlanta Feb 15, 2022
29b19ef
remove testnet checkpoint
jmjatlanta Feb 18, 2022
a7dea2d
Merge 'dev' into jmj_issue_483
jmjatlanta Feb 21, 2022
750628b
merge dev into jmj_assetchains_symbol
jmjatlanta Feb 21, 2022
a20e98e
Merge dev into jmj_assetchains_symbol
jmjatlanta Feb 21, 2022
fe35f42
merge dev into jmj_notary
jmjatlanta Feb 22, 2022
ee02430
allow debug builds
jmjatlanta Sep 21, 2021
a121375
make clean .a files
jmjatlanta Oct 8, 2021
0eaff09
hardforks in own object
jmjatlanta Oct 13, 2021
5da51a3
adjust hardfork defines
jmjatlanta Oct 14, 2021
03229d5
Handle cryptoconditions changes
jmjatlanta Oct 15, 2021
10cbee9
Rebuild libcc.so when dependencies change
jmjatlanta Oct 22, 2021
960fa3a
build cryptoconditions as static (incl Windows)
jmjatlanta Nov 5, 2021
4373f34
addrman no lock in ctor
jmjatlanta Jan 14, 2022
cb8c132
enable-debug script param
jmjatlanta Jan 14, 2022
7ecad6a
switch from -O3 to -O2
jmjatlanta Feb 22, 2022
634c1b2
clean komodo_state
jmjatlanta Feb 23, 2022
a7d20f8
merge dev into jmj_testutils
jmjatlanta Apr 12, 2022
d47d2c2
Merge dev into issue_519
jmjatlanta Apr 27, 2022
433a2f5
merge dev into jmj_build_debug3
jmjatlanta May 10, 2022
7e09f1d
avoid comparing ptr to int
jmjatlanta May 10, 2022
e4c6605
Merge branch 'jmj_build_debug3' into jmj_testutils
jmjatlanta May 16, 2022
cf6af36
Fix locking cs_main in tests
jmjatlanta May 16, 2022
76bad69
Make TestWallet derive from CWallet
jmjatlanta May 20, 2022
770f6eb
Merge pull request #22 from jmjatlanta/jmj_testutils_wallet
jmjatlanta May 20, 2022
9d6a343
adde malloc result check
dimxy Jun 11, 2022
bcc5248
correctly serialize komodostate records
jmjatlanta Jun 13, 2022
175ef13
correctly serialize komodostate records
jmjatlanta Jun 13, 2022
e22e9aa
refactor to reduce casting
jmjatlanta Jun 14, 2022
86fa7b9
refactor to reduce casting
jmjatlanta Jun 14, 2022
876e824
remove dynamic cast from events
jmjatlanta Jun 14, 2022
38f8555
remove dynamic cast from events
jmjatlanta Jun 14, 2022
d70d2a1
Remove unnecessary test
jmjatlanta Jun 14, 2022
0d8e72d
komodo_disconnect no longer used
jmjatlanta Jun 15, 2022
8db798b
Set max witness cache in wallet
jmjatlanta Jun 15, 2022
4c9039c
Merge s6 changes into testutils
jmjatlanta Jun 15, 2022
57df13d
add tests for writing each event type
jmjatlanta Jun 15, 2022
6a73510
test serialization of all event types
jmjatlanta Jun 15, 2022
e0752ad
event_u never used in stateupdate
jmjatlanta Jun 15, 2022
9ded975
fix miner fee in test
jmjatlanta Jun 15, 2022
18c57a0
remove PAX
jmjatlanta Jun 16, 2022
20428c0
removal of prices and pegs cc
jmjatlanta Jun 16, 2022
43eab4a
remove RT from komodo_state
jmjatlanta Jun 20, 2022
8a9ab99
code cleanup
jmjatlanta Jun 20, 2022
e5022eb
reduce komodo_passport_iteration
jmjatlanta Jun 20, 2022
9bc7b33
Remove jumblr
jmjatlanta Jun 21, 2022
f7a1a51
clean up and document KV
jmjatlanta Jun 21, 2022
39fdf46
Get correct config file
jmjatlanta Jun 27, 2022
fe25d9a
Get correct config file
jmjatlanta Jun 27, 2022
d4624fd
add test
jmjatlanta Jun 27, 2022
8828c0e
add test
jmjatlanta Jun 27, 2022
4a1e2a3
clean up komodo_utils
jmjatlanta Jun 28, 2022
8247539
more cleanup komodo_gateway.h
jmjatlanta Jun 29, 2022
407d717
More cleanup of header files
jmjatlanta Jun 29, 2022
d9a4421
Revert header changes
jmjatlanta Jul 5, 2022
0fd2cc2
Remove CURRENCIES array
jmjatlanta Jul 5, 2022
dcbf657
Update src/miner.cpp
dimxy Jul 5, 2022
16a6d83
Merge 'dev' into jmj_issue_483
jmjatlanta Jul 5, 2022
0c6ed24
Merge 'dev' into jmj_clang_warnings
jmjatlanta Jul 5, 2022
902ddb8
Merge 'dev' into jmj_notary
jmjatlanta Jul 5, 2022
a164f4f
Merge dev into jmj_header_declarations
jmjatlanta Jul 8, 2022
ca2290a
hardfork extern const
jmjatlanta Jul 8, 2022
0f25f1e
Merge branch 'dev' into jmj_chainparams_doc
jmjatlanta Jul 12, 2022
5c9e3c8
properly delete pnotarisations on shutdown
jmjatlanta Jul 12, 2022
962d8a7
Merge branch 'dev' into jmj_issue_482
jmjatlanta Jul 12, 2022
a978e33
Merge branch 'dev' into jmj_komodo_interest
jmjatlanta Jul 12, 2022
0dfafbf
Merge branch 'dev' into jmj_crosschain_doc
jmjatlanta Jul 12, 2022
f8c17ce
add interruption_point in komodo_waituntilelegible
dimxy Jul 12, 2022
12261b9
change sleeps to interruptible in miner
dimxy Jul 14, 2022
fafe04d
added constructor to NSPV_remoterpcresp to init as null
dimxy Jul 14, 2022
106c9d3
Merge branch 'dev' into dimxy-fix-staking-array
dimxy Jul 14, 2022
9a48190
avoid SIGSEGV in tromp solver
jmjatlanta Jul 18, 2022
7f89ac3
Add test
jmjatlanta Jul 19, 2022
ef907db
Handle Windows wchar paths
jmjatlanta Jul 19, 2022
2481de2
fix mac tests
jmjatlanta Jul 19, 2022
630a521
fix notary dest ltc root path
dimxy Aug 2, 2022
5b88d76
added GetAppDir() to access ltc config
dimxy Aug 4, 2022
75bf07d
fixed TestParseNotarisation, FilePaths for ltc config
dimxy Aug 4, 2022
a63acc9
Merge branch 'jmj_dev_help' of https://github.com/jmjatlanta/komodo i…
dimxy Aug 9, 2022
9e1d572
Merge branch 'jmj_testutils' of https://github.com/jmjatlanta/komodo …
dimxy Aug 9, 2022
5587810
Merge branch 'jmj_chainparams_doc' of https://github.com/jmjatlanta/k…
dimxy Aug 9, 2022
c3c0b01
Merge branch 'jmj_issue_482' of https://github.com/jmjatlanta/komodo …
dimxy Aug 9, 2022
8e05af3
Merge branch 'jmj_issue_483' of https://github.com/jmjatlanta/komodo …
dimxy Aug 9, 2022
3c98866
Merge branch 'jmj_clang_warnings' of https://github.com/jmjatlanta/ko…
dimxy Aug 9, 2022
c21939d
Merge branch 'dimxy-fix-staking-array' into dev-dimxy-test-4
dimxy Aug 9, 2022
9e1548e
Merge branch 'jmj_notary' of https://github.com/jmjatlanta/komodo int…
dimxy Aug 9, 2022
121e1c3
Merge branch 'jmj_header_declarations' of https://github.com/jmjatlan…
dimxy Aug 10, 2022
fa2ba93
Merge branch 'jmj_komodo_interest' of https://github.com/jmjatlanta/k…
dimxy Aug 10, 2022
7f74319
Merge branch 'jmj_assetchains_symbol' of https://github.com/jmjatlant…
dimxy Aug 10, 2022
ab0c3d0
Merge branch 'jmj_event_init' of https://github.com/jmjatlanta/komodo…
dimxy Aug 11, 2022
57980c9
fix uninit nStart var
dimxy Aug 11, 2022
520ade1
after merge fix dup HF vars
dimxy Aug 11, 2022
2dec69a
Merge branch 'jmj_crosschain_doc' of https://github.com/jmjatlanta/ko…
dimxy Aug 11, 2022
7c3d3b1
added targetSymbol non empty check for import
dimxy Aug 11, 2022
fe7d4b8
Merge branch 'jmj_checkpoint_doc' of https://github.com/jmjatlanta/ko…
dimxy Aug 11, 2022
5dae2bd
Merge branch 'jmj_issue_519' of https://github.com/jmjatlanta/komodo …
dimxy Aug 11, 2022
cd8b9f8
Merge branch 'nspv-json-resp-fix' into dev-dimxy-test-4
dimxy Aug 11, 2022
431029b
fixed LTC dir, added GetAppDir to get coin root dir, fixed test for L…
dimxy Aug 15, 2022
6e61b35
more nota func defs to .h; fixed var init in tests; eliminated donein…
dimxy Aug 15, 2022
625a253
in haraka removal test the protocol ver fixed
dimxy Aug 15, 2022
28b787e
deleted invalid komodo_statefname() def
dimxy Aug 15, 2022
f3cfc0f
Merge branch 'jmj_event_fix3' of https://github.com/jmjatlanta/komodo…
dimxy Aug 15, 2022
2042beb
Merge branch 'jmj_pax' of https://github.com/jmjatlanta/komodo into d…
dimxy Aug 15, 2022
b2868f6
Merge branch 'jmj_datadir_fix' of https://github.com/jmjatlanta/komod…
dimxy Aug 16, 2022
061d306
Merge branch 'jmj_tromp_maxsols' of https://github.com/jmjatlanta/kom…
dimxy Aug 16, 2022
9d18f95
add chainName in komodo-tx
dimxy Aug 16, 2022
230cf00
fix duplicate komodo_current_supply
dimxy Aug 16, 2022
11a4480
test_event improved (used original write_event for 'M', height change…
dimxy Sep 5, 2022
6cd6ed9
warning and shutdown if komodostate invalid
dimxy Sep 5, 2022
00af1af
extra debug print removed
dimxy Sep 5, 2022
a34d577
restored missed longestchain periodic update
dimxy Sep 5, 2022
6345ed4
remove unused 'passport' print
dimxy Sep 5, 2022
a0947f3
eliminated lock debug CMultiThreadedChain object
dimxy Sep 5, 2022
065831f
removed ResetCoinbaseMaturity
dimxy Sep 5, 2022
56b59da
removed ref to deleted unused test rpc table
dimxy Sep 5, 2022
8295377
deleted py tests for kv service (removed)
dimxy Sep 5, 2022
614bf7b
return false if shutdown on import genesis, changed flag to function …
dimxy Sep 5, 2022
3824a2b
allowed 'B' record in komodostate (never processed on reading though)
dimxy Sep 5, 2022
b6f4eea
test notarisation: komodostate inited with a valid record
dimxy Sep 5, 2022
c83ea69
info comment to long test
dimxy Sep 5, 2022
1e9833d
asserts added in test events to prevent bad mem access
dimxy Sep 5, 2022
11779e9
remove 'virtual' def in CChain (no need anymore)
dimxy Sep 6, 2022
4c69fde
undo / revert WITNESS_CACHE_SIZE related changes in CWallet
DeckerSU Sep 12, 2022
b5cd131
configure libgmp on Linux with --with-pic=yes
DeckerSU Sep 12, 2022
61c7d78
remove unused sources from repo (after #559)
DeckerSU Sep 12, 2022
1245cca
komodo_hardfork: avoid build error with CXXFLAGS='-g -O0'
DeckerSU Sep 13, 2022
0ecfdf9
temporary disable test_events write_test
DeckerSU Sep 13, 2022
5283ea9
get rid of LibTomCrypt derived hash implementations
DeckerSU Sep 13, 2022
65cad44
report about komodostate parse error in messagebox, instead of console
DeckerSU Sep 13, 2022
fa2d133
Pr559 add (#128)
DeckerSU Sep 15, 2022
979abb1
more old marmara code removed
dimxy Sep 16, 2022
005df66
hush net commission code removed
dimxy Sep 16, 2022
ba73fd3
more pegs code removed
dimxy Sep 16, 2022
3760fa7
Merge pull request #129 from dimxy/dev-dimxy-rm-pegs-hush
dimxy Sep 19, 2022
cab91e9
added cmd param to remove delay in addrman
dimxy Oct 14, 2022
561a8af
do not add seeds for asset chains
dimxy Oct 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,5 @@ Makefile.in
configure
doc/man/Makefile.in
src/Makefile.in
src/cc/customcc.so
src/cc/libcc.so
src/libcc.so
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,6 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-man

clean-local:
rm -rf test_bitcoin.coverage/ zcash-gtest.coverage/ total.coverage/

clean-all: clean-local
$(MAKE) -C src clean-all
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ AC_LANG_PUSH([C++])
AX_CHECK_COMPILE_FLAG([-Werror],[CXXFLAG_WERROR="-Werror"],[CXXFLAG_WERROR=""])

if test "x$enable_debug" = xyes; then
CPPFLAGS="$CPPFLAGS -DDEBUG -DDEBUG_LOCKORDER"
CPPFLAGS="$CPPFLAGS -DDEBUG"
if test "x$GCC" = xyes; then
CFLAGS="$CFLAGS -g3 -O0"
fi
Expand Down
4 changes: 2 additions & 2 deletions depends/hosts/darwin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ darwin_CXX=g++-8 -target $(host) -mmacosx-version-min=$(OSX_MIN_VERSION) --sysro
darwin_CFLAGS=-pipe
darwin_CXXFLAGS=$(darwin_CFLAGS)

darwin_release_CFLAGS=-O1
darwin_release_CFLAGS=-g -O2
darwin_release_CXXFLAGS=$(darwin_release_CFLAGS)

darwin_debug_CFLAGS=-O1
darwin_debug_CFLAGS=-g -O0
darwin_debug_CXXFLAGS=$(darwin_debug_CFLAGS)

darwin_native_toolchain=native_cctools
5 changes: 2 additions & 3 deletions depends/hosts/linux.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
linux_CFLAGS=-pipe
linux_CXXFLAGS=$(linux_CFLAGS)

linux_release_CFLAGS=-O1
linux_release_CFLAGS=-g -O2
linux_release_CXXFLAGS=$(linux_release_CFLAGS)

linux_debug_CFLAGS=-O1
linux_debug_CFLAGS=-g -O0
linux_debug_CXXFLAGS=$(linux_debug_CFLAGS)

linux_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC

ifeq (86,$(findstring 86,$(build_arch)))
Expand Down
11 changes: 5 additions & 6 deletions depends/hosts/mingw32.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
mingw32_CC=x86_64-w64-mingw32-gcc-posix
mingw32_CXX=x86_64-w64-mingw32-g++-posix
mingw32_CFLAGS=-pipe -std=c11
mingw32_CXXFLAGS=$(mingw32_CFLAGS) -std=c++11
mingw32_CXXFLAGS=-pipe -std=c++11

mingw32_release_CFLAGS=-O1
mingw32_release_CXXFLAGS=$(mingw32_release_CFLAGS)

mingw32_debug_CFLAGS=-O1
mingw32_debug_CXXFLAGS=$(mingw32_debug_CFLAGS)
mingw32_release_CFLAGS=-g -O2
mingw32_release_CXXFLAGS=$(mingw32_CXXFLAGS) $(mingw32_release_CFLAGS)

mingw32_debug_CFLAGS=-g -O0
mingw32_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
mingw32_debug_CXXFLAGS=$(mingw32_CXXFLAGS) $(mingw32_debug_CFLAGS)
2 changes: 1 addition & 1 deletion depends/packages/libgmp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $(package)_download_path=https://github.com/KomodoPlatform/libgmp/releases/downl
$(package)_file_name=gmp-$($(package)_version).tar.bz2
$(package)_sha256_hash=a8109865f2893f1373b0a8ed5ff7429de8db696fc451b1036bd7bdf95bbeffd6
$(package)_dependencies=
$(package)_config_opts=--enable-cxx --disable-shared
$(package)_config_opts=--enable-cxx --disable-shared --with-pic
endif

define $(package)_config_cmds
Expand Down
Loading