Skip to content
Snippets Groups Projects
Commit 74f589b9 authored by Matthew McGill's avatar Matthew McGill
Browse files

Added assertion check if multiple libcapstone file candidates are found

Former-commit-id: b65aaa0ef8c5f35134d7b022d6f04458e06df75b
parent 08ca03cc
No related branches found
No related tags found
No related merge requests found
...@@ -63,6 +63,7 @@ Export('env') ...@@ -63,6 +63,7 @@ Export('env')
# get the libcapstone.so.[version] file regardless of the version extension # get the libcapstone.so.[version] file regardless of the version extension
libcapstone_path = Glob(os.environ['SECURITY_TRANSFORMS_HOME']+'/libcapstone/libcapstone.so.*') 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) libcapstone_path = env.Install("$SECURITY_TRANSFORMS_HOME/lib/", libcapstone_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment