summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--.gitmodules3
-rwxr-xr-x[-rw-r--r--]build.sh2
m---------csources0
4 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index d804fb8f5..462df4efc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,4 +41,3 @@ xcuserdata/
 /testresults.html
 /testresults.json
 testament.db
-/csources/
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 000000000..26f35d82c
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "csources"]
+	path = csources
+	url = ../../nim-lang/csources.git
diff --git a/build.sh b/build.sh
index 139c28359..87e12dcfd 100644..100755
--- a/build.sh
+++ b/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"
diff --git a/csources b/csources
new file mode 160000
+Subproject 15724e2e1f3e7749d508dfcd995e84fea285080