Monday, January 22nd 2018, 10:46pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

jhendrix

Beginner

Date of registration: Oct 31st 2017

Posts: 3

1

Wednesday, January 10th 2018, 5:58pm

EMBuild -D option

Does the -D option to EMBuild make the macro visible to the precompiler while my project is being built?I'm trying to automate a build of my SES project for a Nordic nRF52 processor on a custom board. I can build the project from the command line using EMBuild. I'm adding a -D APP_VER="b92662f" option to the command. But this doesn't appear to take effect in my code.

Here's my call:
embuild -config "Release" -D APP_VER="b92662f" E:\corp\Code\buildDir\app\app.emProject


Here's the code in my project. When building using embuild as called above, I would expect APP_VER to be defined as "b92662f":

#ifndef APP_VER
#define APP_VER "DVLPMNT"
#endif

Thanks.