Skip to content

Instantly share code, notes, and snippets.

@sogaiu
Last active September 1, 2019 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sogaiu/58a15322da4290d63073326f00756846 to your computer and use it in GitHub Desktop.
Save sogaiu/58a15322da4290d63073326f00756846 to your computer and use it in GitHub Desktop.
compiling clojure-clr (almost 1.10) with msbuild / mono / *nix
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