question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Profile include statement

See original GitHub issue

I would like to make it possible to include one profile in the other. There is several reasons for this:

  1. linux-x86_64 and linux-x86 could share several CFLAGS and it would be unnecessary with a lot of code duplication there
  2. With the suggested #1141 it would be hugely beneficial to be able to include the whole part that handles buildtools and centralize that into one file

I think a simple pre-processor include before parsing the file is the simplest and most straight-forward way. Another possible solution would be able to use some kind of templating in the profiles and then have config file where you specify the keys.

The second one is more powerful for sure it could do something like this:

include(BuildTools)
[settings]
compiler={build_tools_compiler}

[env]
CC={build_tools_compiler_path}
CFLAGS={common_cflags} -DFOO

but I am not picky 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Mar 28, 2017

Agree. Most likely we should move forward this feature request to 0.23, and wait until the new [build_requires] are released, tested and get more feedback about usage. Being mostly UX rather than functional, no big issue to postpone it.

0reactions
lasotecommented, Apr 6, 2017

What I’ve been doing with settings it to declare a general profile with the common settings and then use -s for the variations. In the Android Studio use case with a loop of architectures and a declared api_level has been more than enough so, for me, it’s not needed yet. Any other experience is welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

INCLUDE statement - IBM
This statement causes profile statements from the named data set to be included at the point that the INCLUDE statement is encountered.
Read more >
Including profiles in spring boot 2.4.0 version - Stack Overflow
include property included auth profile at runtime. But after I migrated to Spring Boot 2.4.0, I don't get the auth profile enabled. spring....
Read more >
How to Write a Resume Profile or Summary Statement
A resume summary or career profile is a brief statement at the top of your resume. If you are a career changer or...
Read more >
What Is a Resume Profile? 12 Examples of Strong ... - Indeed
A profile on a resume is a written statement located at the top of your resume that briefly highlights the experience and skills...
Read more >
about Profiles - PowerShell | Microsoft Learn
The profile paths include the following variables: ... In this command, the if statement prevents you from overwriting an existing profile.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found