mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
Disable optimization for schema instantiation on gcc as well
This commit is contained in:
@@ -2104,7 +2104,11 @@ class IFC4_instance_factory : public IfcParse::instance_factory {
|
||||
};
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(__clang__)
|
||||
#elif defined(__GNUC__) || defined(__GNUG__)
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("O0")
|
||||
#elif defined(_MSC_VER)
|
||||
#pragma optimize("", off)
|
||||
#endif
|
||||
|
||||
@@ -13701,7 +13705,10 @@ IfcParse::schema_definition* IFC4_populate_schema() {
|
||||
}
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(__clang__)
|
||||
#elif defined(__GNUC__) || defined(__GNUG__)
|
||||
#pragma GCC pop_options
|
||||
#elif defined(_MSC_VER)
|
||||
#pragma optimize("", on)
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user