summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@gmail.com>2016-06-28 16:44:09 +0900
committerJan Vorlicek <janvorli@microsoft.com>2016-06-28 09:44:09 +0200
commit5acbced129024a38aec530f1bb9cd85b7568e05a (patch)
tree26d1dc35f59b4dec10abb4236b155a1e29e10f30 /src/scripts
parent4f134e6e5faecfb184ac4859970b556149357e2d (diff)
downloadcoreclr-5acbced129024a38aec530f1bb9cd85b7568e05a.tar.gz
coreclr-5acbced129024a38aec530f1bb9cd85b7568e05a.tar.bz2
coreclr-5acbced129024a38aec530f1bb9cd85b7568e05a.zip
Move intermediate file into intermediate dir (#5981)
The intermediate file, cmake.definitions, is moved into the intermediate directory: bin/obj/OS.Arch.Conf/ The script won't emit error for not having the cmake results because some systems (Windows) do not use Cmake and users might use "skipnative". Fixes #5976 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'src/scripts')
-rw-r--r--src/scripts/check-definitions.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/scripts/check-definitions.py b/src/scripts/check-definitions.py
index ace70786b9..59b309a3e6 100644
--- a/src/scripts/check-definitions.py
+++ b/src/scripts/check-definitions.py
@@ -33,7 +33,12 @@ debug = 0
# For the native part, return the sorted definition array.
def loadDefinitionFile(filename):
result = []
- f = open(filename, 'r')
+ try:
+ f = open(filename, 'r')
+ except:
+ sys.exit(0)
+ # if cmake was not used (because of skipnative or systems that do not use cmake), this script won't work.
+
for line in f:
theLine = line.rstrip("\r\n").strip()
if (len(theLine) > 0):