Chromium Code Reviews| Index: test/win/compiler-flags/enable-enhanced-instruction-set.gyp |
| diff --git a/test/win/compiler-flags/enable-enhanced-instruction-set.gyp b/test/win/compiler-flags/enable-enhanced-instruction-set.gyp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..44d8ad36a71cccc6d22988772d4be2429f790c75 |
| --- /dev/null |
| +++ b/test/win/compiler-flags/enable-enhanced-instruction-set.gyp |
| @@ -0,0 +1,54 @@ |
| +# Copyright (c) 2014 Google Inc. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| + |
| +{ |
| + 'targets': [ |
| + { |
| + 'target_name': 'sse_extensions', |
| + 'type': 'executable', |
| + 'msvs_settings': { |
| + 'VCCLCompilerTool': { |
| + 'EnableEnhancedInstructionSet': '1', # StreamingSIMDExtensions |
| + } |
| + }, |
| + 'sources': ['enable-enhanced-instruction-set.cc'], |
| + }, |
| + { |
| + 'target_name': 'sse2_extensions', |
| + 'type': 'executable', |
| + 'msvs_settings': { |
| + 'VCCLCompilerTool': { |
| + 'EnableEnhancedInstructionSet': '2', # StreamingSIMDExtensions2 |
| + } |
| + }, |
| + 'sources': ['enable-enhanced-instruction-set.cc'], |
| + }, |
| + ], |
| + 'conditions': [ |
| + ['MSVS_VERSION[0:4]>"2010"', { |
| + 'targets': [ |
| + { |
| + 'target_name': 'avx_extensions', |
| + 'type': 'executable', |
| + 'msvs_settings': { |
| + 'VCCLCompilerTool': { |
| + 'EnableEnhancedInstructionSet': '3', # AdvancedVectorExtensions |
| + } |
| + }, |
| + 'sources': ['enable-enhanced-instruction-set.cc'], |
| + }, |
| + { |
| + 'target_name': 'no_extensions', |
| + 'type': 'executable', |
| + 'msvs_settings': { |
| + 'VCCLCompilerTool': { |
| + 'EnableEnhancedInstructionSet': '4', # NoExtensions |
| + } |
| + }, |
| + 'sources': ['enable-enhanced-instruction-set.cc'], |
| + }, |
|
scottmg
2014/03/11 16:32:58
Could you add an "unset" test too? It changed from
grt (UTC plus 2)
2014/03/11 17:08:45
I thought about that. I would need to add a condit
|
| + ], |
| + }], |
| + ], |
| +} |