dtoolbase: Remove EXPORT_TEMPLATES define
As of f69354d9fa, this is just always
expected on all platforms. If it's not defined,
TemplateClass<X>::_type_handle won't link correctly with some compilers
(e.g. Clang) and the lack of 'extern template class' will result in
duplicated code in any case. In short, turning it off causes problems.
makepanda also always turns this on, so it doesn't represent any
optional feature or autodetected platform-specific behavior anyway.
This commit is contained in:
parent
2031409a6e
commit
a4c1b44371
|
|
@ -257,7 +257,7 @@ template<class T> typename remove_reference<T>::type &&move(T &&t) {
|
|||
#endif
|
||||
|
||||
|
||||
#if !defined(LINK_ALL_STATIC) && defined(EXPORT_TEMPLATES)
|
||||
#ifndef LINK_ALL_STATIC
|
||||
// This macro must be used to export an instantiated template class from a
|
||||
// DLL. If the template class name itself contains commas, it may be
|
||||
// necessary to first define a macro for the class name, to allow proper macro
|
||||
|
|
|
|||
|
|
@ -2253,7 +2253,6 @@ DTOOL_CONFIG=[
|
|||
("SUPPORT_FIXED_FUNCTION", '1', '1'),
|
||||
("DO_MEMORY_USAGE", 'UNDEF', 'UNDEF'),
|
||||
("DO_PIPELINING", '1', '1'),
|
||||
("EXPORT_TEMPLATES", 'yes', 'yes'),
|
||||
("DEFAULT_PATHSEP", '";"', '":"'),
|
||||
("WORDS_BIGENDIAN", 'UNDEF', 'UNDEF'),
|
||||
("HAVE_NAMESPACE", '1', '1'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue