mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Empty paths in a colon separated list would be considered as the current directory, so have to ensure $PATH and $LD_LIBRARY_PATH are not empty before separating it with :
16 lines
276 B
Bash
16 lines
276 B
Bash
sh ci/deps.sh
|
|
|
|
# Build from C sources.
|
|
git clone --depth 1 https://github.com/nim-lang/csources.git
|
|
cd csources
|
|
sh build.sh
|
|
cd ..
|
|
# Add Nim to the PATH
|
|
export PATH=$(pwd)/bin${PATH:+:$PATH}
|
|
# Bootstrap.
|
|
nim -v
|
|
nim c koch
|
|
./koch boot
|
|
cp bin/nim bin/nimd
|
|
./koch boot -d:release
|