Last active
September 1, 2019 04:42
-
-
Save sogaiu/58a15322da4290d63073326f00756846 to your computer and use it in GitHub Desktop.
compiling clojure-clr (almost 1.10) with msbuild / mono / *nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/clojure/clojure-clr | |
cd clojure-clr | |
cd Clojure | |
# following will likely lead to error initially, but: | |
msbuild build.proj /target:Build /p:Configuration="Release 4.0" /p:Platform="Any CPU" /p:Runtime="Mono" | |
# go fix the permission problem | |
cd ../bin/4.0/Release && chmod 755 Clojure.Compile.exe && cd - | |
# on macos may need to edit Clojure/Clojure.Compile/Clojure.Compile.csproj | |
# to insert an appropriate instance of the string "mono" (no quotes) at | |
# the beginng of the line after the `<PostBuildEvent>set clojure.compiler...` | |
# line | |
# try again | |
msbuild build.proj /target:Build /p:Configuration="Release 4.0" /p:Platform="Any CPU" /p:Runtime="Mono" | |
# may be want to tweak the permissions for exe: | |
cd ../bin/4.0/Release && chmod 755 *.exe | |
# verify clojure runs: | |
./Clojure.Main.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment