Make csources a submodule
1. Solves a problem that updating Nim sources we have no indication we need to update csources as well. 2. Using submodule we can explicitly request that some Nim version requires some csources version to bootstrap. 3. build.sh now simply calls: git submodule update --init --depth 1 instead shallow clone on missing csources subdirectory.
This commit is contained in:
parent
ca67687e3b
commit
e31bca55fa
4 changed files with 5 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -41,4 +41,3 @@ xcuserdata/
|
|||
/testresults.html
|
||||
/testresults.json
|
||||
testament.db
|
||||
/csources/
|
||||
|
|
|
|||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "csources"]
|
||||
path = csources
|
||||
url = ../../nim-lang/csources.git
|
||||
2
build.sh
2
build.sh
|
|
@ -3,7 +3,7 @@ set -e
|
|||
set -x
|
||||
|
||||
if [ ! -d "csources" ]; then
|
||||
git clone --depth 1 https://github.com/nim-lang/csources.git
|
||||
git submodule update --init --depth 1
|
||||
fi
|
||||
|
||||
cd "csources"
|
||||
|
|
|
|||
1
csources
Submodule
1
csources
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 15724e2e1f3e7749d508dfcd995e84fea2850802
|
||||
Loading…
Add table
Add a link
Reference in a new issue