Merge pull request #939 from rgrinberg/rename-build-profile
Rename build profile
This commit is contained in:
commit
87039cd616
|
@ -102,6 +102,8 @@ next
|
|||
when not defined by the user and make `@@default` be the default
|
||||
target (#926, @diml)
|
||||
|
||||
- Add `%{profile}` variable. (#938, @rgrinberg)
|
||||
|
||||
1.0+beta20 (10/04/2018)
|
||||
-----------------------
|
||||
|
||||
|
|
|
@ -822,6 +822,7 @@ Jbuilder supports the following variables:
|
|||
not be exactly the same as what you can see in the output of
|
||||
``ocamlc -config``. In particular, variables added in new versions
|
||||
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:
|
||||
|
||||
|
|
|
@ -309,7 +309,7 @@ let create
|
|||
; "ext_lib" , string context.ext_lib
|
||||
; "ext_dll" , string context.ext_dll
|
||||
; "ext_exe" , string context.ext_exe
|
||||
; "build_profile" , string context.profile
|
||||
; "profile" , string context.profile
|
||||
]
|
||||
in
|
||||
let vars =
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
(alias
|
||||
(name runtest)
|
||||
(action (echo "build profile: %{build_profile}")))
|
||||
(action (echo "build profile: %{profile}")))
|
Loading…
Reference in New Issue