PR# 14271 Tries to use precompile even if excluded for platform

Problem Report Summary
Submitter: peter_gummer
Category: Compiler
Priority: Medium
Date: 2008/04/29
Class: Bug
Severity: Serious
Number: 14271
Release: 6.1.7.1477
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-au) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18
Synopsis: Tries to use precompile even if excluded for platform

Description
In order to avoid the problem described in issue #14270, so that others will not make the same mistake that I did, I decided to configure my project so that it would use the precompiled vision2 library only on Windows. First I tried this:

		<precompile name="precompile" location="$ISE_PRECOMP\vision2.ecf">
			<condition>
				<platform value="windows"/>
			</condition>
		</precompile>

It compiled correctly on Windows, but when I tried it on Mac OS X this happened:

ec -batch -config apps/adl_workbench/app/adl_workbench.ecf -target adl_workbench -finalize -c_compile
Precompile will automatically be built
because of the -stop/-batch option.

(The build then failed, because I have not bothered building the precompiled libraries on the Mac and the permissions are not set. That's ok, I would expect it to fail.)

I tried reversing the condition:

		<precompile name="precompile" location="$ISE_PRECOMP\vision2.ecf">
			<condition>
				<platform excluded_value="unix macintosh"/>
			</condition>
		</precompile>

But the same thing happened. It is ignoring the condition and trying to use the precompile on platforms where it has been instructed not to do so.
To Reproduce

										
Problem Report Interactions