mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
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:
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
Submodule csources added at 15724e2e1f
Reference in New Issue
Block a user