out-of-tree builds

93 views
Skip to first unread message

Jameson Nash

unread,
Sep 14, 2015, 4:04:16 PM9/14/15
to juli...@googlegroups.com

I've recently merged #12463 on master which enables out-of-tree builds ( this does not apply to the release-0.4 branch). What this means for you is:

1) deps will rebuild. All external source files are now in deps/srccache, all external build files are now in deps/build when you next build.
2) `make O=output` will start an out-of-tree build in the folder "output"
3) dummy Makefiles are setup in the out-of-tree build folders for easier incremental building from any directory
4) The new makefile target `configure` will create these dummy Makefiles
5) by placing a `Make.user` file at `output/Make.user`, you can override the behavior of the global `Make.user` file for that directory, allowing testing for a wider range of systems (windows, 32-bit, llvm-versions, etc), all from the same source tree. Note that the global Make.user file is included in every build folder, but is run prior to the Make.user file to allow overrides.
6) unlike most other out-of-tree build systems, this system does not care if you also have an in-tree build present, so happy building.

(this is mentioned in https://github.com/JuliaLang/julia/blob/jn/makefile_o/README.md#source-download-and-compilation also)

-jameson
Reply all
Reply to author
Forward
0 new messages