From e33e950712eac0f1314a9f90d689c2786a5e8cbc Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 9 Jul 2016 14:38:49 +0300 Subject: [PATCH] Add example dynamic `build_flags` --- docs/projectconf.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/projectconf.rst b/docs/projectconf.rst index f7dbc86c..f340833b 100644 --- a/docs/projectconf.rst +++ b/docs/projectconf.rst @@ -351,6 +351,10 @@ Example: [env:specific_ld_script] build_flags = -Wl,-T/path/to/ld_script.ld + [env:exec_command] + # get VCS revision "on-the-fly" + build_flags = !echo "-DPIO_SRC_REV="$(git rev-parse HEAD) + For more detailed information about available flags/options go to: