mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
faster Tau on Linux
This commit is contained in:
parent
7f49d41284
commit
95d10754c0
@ -87,7 +87,7 @@
|
||||
#push 1 $[file]_obj
|
||||
#end file
|
||||
|
||||
#if $[and $[not $[DONT_COMBINE]],$[or $[USE_SINGLE_COMPOSITE_SOURCEFILE],$[and $[USE_TAU],$[WINDOWS_PLATFORM]]]]
|
||||
#if $[and $[not $[DONT_COMBINE]],$[or $[USE_SINGLE_COMPOSITE_SOURCEFILE],$[USE_TAU]]]
|
||||
#if $[> $[words $[cxx_sources]], 1]
|
||||
// If we have multiple C++ files, put them together into one
|
||||
// composite file.
|
||||
|
@ -166,7 +166,14 @@
|
||||
/* ################################# DO NOT EDIT ########################### */
|
||||
|
||||
#foreach file $[$[composite_file]_sources]
|
||||
#if $[USE_TAU]
|
||||
// For the benefit of Tau, we copy the source file verbatim into the
|
||||
// composite file. (Tau doesn't instrument files picked up via #include.)
|
||||
#copy $[DIRPREFIX]$[file]
|
||||
|
||||
#else
|
||||
##include "$[file]"
|
||||
#endif // USE_TAU
|
||||
#end file
|
||||
|
||||
#end $[composite_file]
|
||||
|
@ -18,11 +18,7 @@
|
||||
|
||||
#include "dconfig.h"
|
||||
|
||||
namespace Config {
|
||||
|
||||
clock_t total_time_config_init = 0;
|
||||
clock_t total_time_external_init = 0;
|
||||
int total_num_get = 0;
|
||||
|
||||
}
|
||||
clock_t Config::total_time_config_init = 0;
|
||||
clock_t Config::total_time_external_init = 0;
|
||||
int Config::total_num_get = 0;
|
||||
|
||||
|
@ -7,8 +7,9 @@
|
||||
#begin lib_target
|
||||
#define TARGET pgraph
|
||||
|
||||
// This directory is too big to combine into a single composite file.
|
||||
#define DONT_COMBINE 1
|
||||
// This directory is too big to combine into a single composite
|
||||
// file--at least on Windows.
|
||||
#define DONT_COMBINE $[WINDOWS_PLATFORM]
|
||||
|
||||
#define SOURCES \
|
||||
accumulatedAttribs.I accumulatedAttribs.h \
|
||||
|
Loading…
x
Reference in New Issue
Block a user