Merge pull request #939 from rgrinberg/rename-build-profile

Rename build profile
This commit is contained in:
Rudi Grinberg 2018-07-02 14:09:30 +07:00 committed by GitHub
commit 87039cd616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View File

@ -102,6 +102,8 @@ next
when not defined by the user and make `@@default` be the default when not defined by the user and make `@@default` be the default
target (#926, @diml) target (#926, @diml)
- Add `%{profile}` variable. (#938, @rgrinberg)
1.0+beta20 (10/04/2018) 1.0+beta20 (10/04/2018)
----------------------- -----------------------

View File

@ -822,6 +822,7 @@ Jbuilder supports the following variables:
not be exactly the same as what you can see in the output of not be exactly the same as what you can see in the output of
``ocamlc -config``. In particular, variables added in new versions ``ocamlc -config``. In particular, variables added in new versions
of OCaml needs to be registered in Jbuilder before they can be used of OCaml needs to be registered in Jbuilder before they can be used
- ``profile`` the profile selected via ``--profile``
In addition, ``(action ...)`` fields support the following special variables: In addition, ``(action ...)`` fields support the following special variables:

View File

@ -309,7 +309,7 @@ let create
; "ext_lib" , string context.ext_lib ; "ext_lib" , string context.ext_lib
; "ext_dll" , string context.ext_dll ; "ext_dll" , string context.ext_dll
; "ext_exe" , string context.ext_exe ; "ext_exe" , string context.ext_exe
; "build_profile" , string context.profile ; "profile" , string context.profile
] ]
in in
let vars = let vars =

View File

@ -1,3 +1,3 @@
(alias (alias
(name runtest) (name runtest)
(action (echo "build profile: %{build_profile}"))) (action (echo "build profile: %{profile}")))