Environment variables in additional *.cfg file not replaced
Original Reporter info from Mantis: zamronypj @zamronypj
-
Reporter name: Zamrony P. Juhara
Original Reporter info from Mantis: zamronypj @zamronypj
- Reporter name: Zamrony P. Juhara
Description:
When a project options is set to use additional compiler config that contains environment variable, Lazarus does not replace with actual value of environment variable.
Steps to reproduce:
- Create compiler config, for example, /home/myaccount/myconfig0.cfg, with content like so
#INCLUDE MY_DIR
/myconfig1.cfg
and create /home/myaccount/my/myconfig1.cfg
-
Create environment variable MY_DIR with value /home/myaccount/my
-
Create new project, for example File->New->Simple Program
-
Open Project Options dialog (Projects->Project Options). Select Compiler Options->Config and Target.
check "use additional compiler config (@)" and put config path "/home/myaccount/myconfig0.cfg" -
Compile project, observe that Lazarus reports that it can not find
MY_DIR
/myconfig1.cfg
Mantis conversion info:
- Mantis ID: 38421
- OS: Ubuntu
- OS Build: 18.04
- Build: r63526
- Platform: X86_64
- Version: 2.0.10