From 74f589b9bcc5afed055d5c25322ec27e83d3b6a4 Mon Sep 17 00:00:00 2001 From: Matthew McGill <mm8bx@mega-techx41.maas> Date: Sat, 2 Feb 2019 22:41:04 +0000 Subject: [PATCH] Added assertion check if multiple libcapstone file candidates are found Former-commit-id: b65aaa0ef8c5f35134d7b022d6f04458e06df75b --- SConscript | 1 + 1 file changed, 1 insertion(+) diff --git a/SConscript b/SConscript index 3890a6741..a2fc2e525 100644 --- a/SConscript +++ b/SConscript @@ -63,6 +63,7 @@ Export('env') # get the libcapstone.so.[version] file regardless of the version extension libcapstone_path = Glob(os.environ['SECURITY_TRANSFORMS_HOME']+'/libcapstone/libcapstone.so.*') +assert len(libcapstone_path) <= 1, "More than one candidate for libcapstone.so.[version]?!" libcapstone_path = env.Install("$SECURITY_TRANSFORMS_HOME/lib/", libcapstone_path) -- GitLab