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.

[question] Is there a conan v2 build helper to honor profile in nmake builds?

See original GitHub issue

In conan v1, to ensure that we honor profile in nmake build, we have this kind of pattern:

            with tools.vcvars(self):
                with tools.environment_append(VisualStudioBuildEnvironment(self).vars):
                    self.run("nmake -f makefile.vc)

For vccars, there is conan.tools.microsoft.VCVars we can call in generate(), but how to properly populate CL & LIB so that build_type, runtime, tools.build:cflags, tools.build:cxxflags, tools.build:defines etc from profile are honored?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Oct 29, 2022

Then, my proposal would be a new modern NMake dedicated generator.

0reactions
SpaceImcommented, Nov 24, 2022

Regarding os and arch not sure what you mean. The previous VisualStudioBuildEnvironment integration didn’t do anything regarding those settings, it is not clear what should be passed to the compiler to cross compile.

I guess it’s already handled by VCVars generators actually.

tools.build:jobs can be honored by injecting /MP<build_jobs> in CL, or just /MP if tools.build:jobs is not set (for consistency with other build systems).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog — conan 1.56.0 documentation
Conan reads them to call cmake with -D when using the CMake(self) build helper. These cache variables doesn't support multi-configuration generators.
Read more >
1st Amendment U.S. Constitution--Religion and Expression
2 In the Senate, the section adopted read: ''Congress shall make no law establishing articles of faith, or a mode of worship, or...
Read more >
501 Reading Comprehension Questions
Are you having trouble with reading comprehension questions on tests? Do you want to know how to improve your reading ability or pass....
Read more >
Master Index CMake 2.8.12
Any standard UNIX-style make program can build the project through the default make target ... If the target is already built, the command...
Read more >
Grade 9 ELA Sample SR Item C1 T1 - Hawaii DOE
Stimulus Text: Read the following passage and then answer the question. An Old-Fashioned Girl by Louisa May Alcott. Polly hoped the ...
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