summaryrefslogtreecommitdiff
path: root/src/inc/optdefault.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/inc/optdefault.h')
-rw-r--r--src/inc/optdefault.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/inc/optdefault.h b/src/inc/optdefault.h
new file mode 100644
index 0000000000..dd0bd44c04
--- /dev/null
+++ b/src/inc/optdefault.h
@@ -0,0 +1,12 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+//
+// Revert optimizations back to default
+//
+#undef FPO_ON
+
+#ifdef _MSC_VER
+#pragma optimize("",on)
+#endif