Extended the Build.PL to understand an environment variable
SLIC3R_PROFILE to set the C++ symbol of the same name to enable Shiny profiler.
This commit is contained in:
parent
c3af189045
commit
bcda69c1e5
1 changed files with 6 additions and 0 deletions
|
@ -46,6 +46,12 @@ if ($ENV{SLIC3R_GUI})
|
||||||
# push @early_includes, qw(slic3r/GUI/wxinit.h);
|
# push @early_includes, qw(slic3r/GUI/wxinit.h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($ENV{SLIC3R_PROFILE})
|
||||||
|
{
|
||||||
|
print "Slic3r will be built with a Shiny invasive profiler\n";
|
||||||
|
push @cflags, qw(-DSLIC3R_PROFILE);
|
||||||
|
}
|
||||||
|
|
||||||
if ($ENV{SLIC3R_HAS_BROKEN_CROAK})
|
if ($ENV{SLIC3R_HAS_BROKEN_CROAK})
|
||||||
{
|
{
|
||||||
# Some Strawberry Perl builds (mainly the latest 64bit builds) have a broken mechanism
|
# Some Strawberry Perl builds (mainly the latest 64bit builds) have a broken mechanism
|
||||||
|
|
Loading…
Add table
Reference in a new issue