Recent

Author Topic: [Solved] is there an option to build app in Release mode with lazbuild?  (Read 3277 times)

FangQ

  • Full Member
  • ***
  • Posts: 135
I am trying to set up a cronjob to automatically compile/release my GUI. Currently, I call lazbuild and it produces a binary inside debug folder. I don't see an option in the help to specify build profile. Is anyone aware of a workaround? thanks
« Last Edit: July 02, 2017, 07:54:41 pm by FangQ »

Thaddy

  • Hero Member
  • *****
  • Posts: 18475
  • Here stood a man who saw the Elbe and jumped it.
Re: is there an option to build app in Release mode with lazbuild?
« Reply #1 on: July 02, 2017, 08:21:15 am »
It probably also means you have not setup build profiles through the ide.
I suspect that once you have done that these should also be available for LazBuild ?
Project|Project Options|Compiler| check build modes. Then click ... and create debug and releases modes.
Finally check Set Compiler Options as default. After that the build modes should be available for LazBuild.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8833
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: is there an option to build app in Release mode with lazbuild?
« Reply #2 on: July 02, 2017, 08:58:26 am »
Didn't `lazbuild --help` tell you something?

Thaddy

  • Hero Member
  • *****
  • Posts: 18475
  • Here stood a man who saw the Elbe and jumped it.
Re: is there an option to build app in Release mode with lazbuild?
« Reply #3 on: July 02, 2017, 09:34:20 am »
I just tested my description above on Linux and indeed, lazbuild will pick up release mode from the project when it is defined. (I don't use lazbuild that much, I use scripts)
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

FangQ

  • Full Member
  • ***
  • Posts: 135
Re: is there an option to build app in Release mode with lazbuild?
« Reply #4 on: July 02, 2017, 07:54:28 pm »
Didn't `lazbuild --help` tell you something?

forgive me. I saw the "--build-mode" option, but every time after I used it, I saw the binary was generated inside the "debug" folder. So, I thought it wasn't the right option. I just realized that in both of my Debug/Release profiles, the output folders were specified as "debug". So, that flag indeed worked. I verified the generated binary in the release mode, the "Heaptrc" output was indeed removed, as desired.

sorry for overlooking this. case closed.

 

TinyPortal © 2005-2018