Commit Graph

181 Commits

Author SHA1 Message Date
Iuri Matias 656c82f08d make build script use correct nim commit 2022-10-16 09:43:28 -04:00
Iuri Matias 746eae5160 revert back to og nim version used by desktop 2022-10-15 17:13:08 -04:00
Iuri Matias 6bedd22923 remove specific nim vendor branch 2022-10-15 17:10:41 -04:00
Zahary Karadjov dc535cd462
Better compatibility with direnv
Scripts sourcing a project env.sh file (e.g. direnv's .envrc) can specify
the `NBS_ONLY_LOAD_ENV_VARS` env variable to avoid any attempts from NBS
to execute a target script. Previously, the script was trying to detect
only sourcing from an interactive shell.
2022-10-15 00:59:16 +03:00
Zahary Karadjov b1d380e07e
Allow the paths file to be created outside of the build system env 2022-10-15 00:21:53 +03:00
Zahary Karadjov d548b20ecd
Generate the paths file in 'make update' 2022-10-14 23:43:51 +03:00
Zahary Karadjov 5a6f950b6d
Tentative fix for the libminiupnp build problems on Windows 2022-10-12 19:28:03 +03:00
Jakub Sokołowski 6b419277aa
hardcode CC to gcc for windows (#52)
Windows doesn't have a `cc` symlnk and this results in build failure:
```
C compiler (cc) not installed. Aborting.
```
Because `?=` operator treats `CC` as already set, since it defaults to `cc`:
https://www.gnu.org/software/make/manual/make.html#Implicit-Variables
2022-10-12 18:28:34 +03:00
Zahary Karadjov a04a8eb266
Switch to Nim 1.6 2022-10-10 18:39:01 +03:00
Zahary Karadjov a75cb63076
update miniupnp build targets to match their latest version 2022-10-04 19:21:45 +03:00
Jakub Sokołowski 07e37730c6
allow overriding CC with clang or other (#51) 2022-10-04 19:18:45 +03:00
Ivan Yonchovski daff2b4670
Make sure the path is understandable for nim on windows (#49) 2022-09-12 12:50:14 +03:00
Zahary Karadjov c7977002fb
Support vendor packages with a 'src' folder 2022-08-25 22:17:48 +03:00
Ivan Yonchovski daca2e58bd
Initial step to make NBS work with --noNimblePath (#48)
Here POC on what are the other steps that have to be performed to allow using NBS.

0961d3acc2

Once all projects migrate to this approach, the code related to building
NIMBLE_PATH can be deleted from the repo

cc @zah
2022-08-11 13:09:15 +03:00
Zahary Karadjov c0c15c4e45
Revert "Bump Nim to 1.6.7 (as of 2022-07-25)"
This reverts commit 6d75eeea74.

A critical `lent` issue has been discovered
2022-07-29 11:25:15 +03:00
Zahary Karadjov 6d75eeea74
Bump Nim to 1.6.7 (as of 2022-07-25) 2022-07-25 23:26:54 +03:00
Bulat-Ziganshin fe4865eae3
Fix typo in targets.mk (#46)
https://github.com/status-im/nimbus-build-system/blob/master/makefiles/targets.mk#L152

should contain "CC=$(CC)", similar to the next line. Otherwise Makefile variable CC gets defined as "cc" and it doesn't work for Windows
2022-06-16 08:45:48 +03:00
Ștefan Talpalaru a8ab2dc39a
build_nim.sh: hide stderr from "ls" (#43) 2022-03-18 21:09:01 +01:00
Ștefan Talpalaru 041544c2b7
build_nim.sh: fix "cacert.pem" corner case (#42) 2022-03-18 10:29:00 +01:00
Ștefan Talpalaru 8377eed7c0
build_nim.sh: limit the number of Nim binaries (#41)
The most recent 10 compiler binaries should be enough for everyone.
2022-03-18 10:21:21 +01:00
Ștefan Talpalaru 8425ff9e3b
"update-dev" target (#40)
OVERRIDE now defaults to 1 for "update" and 0 for "update-dev".
2022-01-26 15:20:55 +01:00
Ștefan Talpalaru f62fa395f7
build_nim.sh: handle manual symlink deletion (#39) 2022-01-26 11:54:34 +01:00
Ștefan Talpalaru bc4791418a
remove build_p2pd.sh (#38)
nim-libp2p has its own copy
2022-01-20 03:24:43 +01:00
Ștefan Talpalaru 36e57b833d
EXCLUDED_NIM_PACKAGES (#37) 2022-01-20 00:44:30 +01:00
Ștefan Talpalaru f85ad74a05
/dev/tty exists but can't be used in GitHub Actions (#35) 2022-01-19 21:44:33 +01:00
Ștefan Talpalaru 25a4c27033
Nim-1.2.16 (#33) 2021-12-16 22:48:52 +01:00
Ștefan Talpalaru b4ae7bbc92
hide some annoying stderr (#32) 2021-12-08 13:20:56 +01:00
Ștefan Talpalaru 59dfbda0da
update: ignore non-submodule changes at top-level (#31)
and check if /dev/tty exists before using it
2021-11-30 12:52:33 +01:00
Ștefan Talpalaru 3b83e22943
clean-common: Windows fix (#30)
libnatpmp needs CC redefined, even for a `mingw32-make clean`
2021-11-23 01:16:27 +01:00
Ștefan Talpalaru 93ad4a4b20
NIM_COMMIT fix (#29) 2021-11-22 18:13:01 +01:00
Ștefan Talpalaru 08000b4bf0
update: check if any work might be lost (#28) 2021-11-22 17:26:51 +01:00
Ștefan Talpalaru 8d226580a0
build_nim.sh: don't set a default NIM_COMMIT value
Targeting a branch doesn't work, when it's a submodule pointing to an
older commit that we're dealing with.
2021-11-10 09:46:43 +01:00
Ștefan Talpalaru 57f0718a2f
Nim-1.2.14 2021-11-09 15:50:33 +01:00
Ștefan Talpalaru e5bc3dd3a2
libnatpmp.a: silence a warning 2021-11-05 12:17:30 +01:00
Ștefan Talpalaru 5fbffb2285
don't swallow stderr with V=0 (#27) 2021-11-05 00:18:36 +01:00
Etan Kissling 9d6b4b6e98
fix build output color on macOS (#26)
On macOS, `echo` does not support the `\e` extension from GNU coreutils.
Replacing with the portable `\x1B` to fix Terminal build output colors.
2021-09-09 14:12:17 +02:00
Ștefan Talpalaru 15bc75d4cf QUICK_AND_DIRTY_NIMBLE 2021-09-07 18:28:47 +03:00
Ștefan Talpalaru 6589cedffa
libminiupnpc.a: fix Windows build when '.' not in PATH 2021-08-17 02:44:49 +02:00
Ștefan Talpalaru 7897dfe46c
deal w/ a diverged local branch where a ff merge is not possible 2021-07-30 21:34:43 +02:00
Ștefan Talpalaru 0e709abc28
build_nim.sh: deal with old local branches used as Nim targets (#23) 2021-07-30 01:12:26 +02:00
Ștefan Talpalaru a1da1f403d
don't build csources twice on Nim devel 2021-06-17 04:52:02 +02:00
Ștefan Talpalaru 77747657f6
support old Git versions, like the one from Ubuntu-18.04 2021-05-25 19:51:12 +02:00
Ștefan Talpalaru b6ceb0fc65
replace csources submodule 2021-05-22 19:05:06 +02:00
Ștefan Talpalaru e125ec9a51
build_nim.sh: change csources repo
Nim devel no longer builds with the old one
2021-05-22 17:13:58 +02:00
Ștefan Talpalaru 8758242198
build_nim.sh: update "last_built_commit" 2021-05-22 04:44:06 +02:00
Ștefan Talpalaru 12c3591fc1
speculative fix 2021-05-05 12:25:14 +02:00
Ștefan Talpalaru d74428a6ee
nat-libs: don't hardcode CC for Windows 2021-04-29 23:00:28 +02:00
Ștefan Talpalaru 38e81f10d3
Windows: the "nim" symlinks lacked a suffix 2021-04-29 13:22:35 +02:00
Ștefan Talpalaru 47b4317888
deal with local modifications in the working copy 2021-04-29 01:31:35 +02:00
Ștefan Talpalaru 135e43468f
add an upstream remote to the Status Nim fork repo
and fix the Nimble commit that went missing upstream at some point
2021-04-29 01:07:25 +02:00