]>
git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Sample/Tools/Source/VcCheck/VcCheck.c
3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 We have found problems with the Visual C++ SP4 and the /O1 flag.
19 If this tests ask a question you have the wrong version of Visual C++
22 This test assumes the tools are being compiled with the same complier
25 Please see $(EFI_SOURCE)\EFI2.0 Developer's Manual.doc to get the
26 correct version of Visual C++
41 This routine is used to test for compiler isseus with /O1.
42 If the /O1 compiler option, and C2.dll is got from Visual C++ SP5
43 (version: 6.00.8168.0), the assember codes after default branch will be
44 losted. (Execute "cl Visual Ccheck.c /O1 /FAsc" to get detail information)
50 Test to see if comiler error is present.
84 This utility is checking for a known Visual C++ compiler issues. To remove this
85 question from the build follow the steps in the developers manual.
91 0 - Compiler version is O.K.
92 1 - Compiler version is Bad
103 result
+= (gGloba16
== 0) ? 0 : 1;
106 result
+= (gGloba16
== 1) ? 0 : 1;
109 printf ("Warning: C2.dll is incorrect.\n Please see $(EFI_SOURCE)\\EFI2.0 Developer's Manual.doc for corrective action.\n");
110 printf ("Would you want to continue?(Y/N)");
112 scanf ("%c", &select
);
113 if ((select
== 'Y') || (select
== 'y')) {