mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-12-08 00:02:59 -05:00
enable true out-of-source build (#1093)
This commit is contained in:
parent
e9a086592c
commit
9be13d21ed
@ -120,13 +120,10 @@ def filtered_test(func):
|
|||||||
|
|
||||||
# So far, build dir name has been hard coded to "build".
|
# So far, build dir name has been hard coded to "build".
|
||||||
# This function makes it dependent on the availability of the environment variable OQS_BUILD_DIR:
|
# This function makes it dependent on the availability of the environment variable OQS_BUILD_DIR:
|
||||||
# OQS_BUILD_DIR must be below current working dir; if not, behave as before
|
# If OQS_BUILD_DIR is not set, behave as before, returning hard-coded build name set as per README
|
||||||
# If OQS_BUILD_DIR is not set, behave as before, returning hard-coded build name
|
|
||||||
def get_current_build_dir_name():
|
def get_current_build_dir_name():
|
||||||
if 'OQS_BUILD_DIR' in os.environ:
|
if 'OQS_BUILD_DIR' in os.environ:
|
||||||
# assure this is within current dir:
|
return os.environ['OQS_BUILD_DIR']
|
||||||
if os.environ['OQS_BUILD_DIR'].startswith(os.getcwd()):
|
|
||||||
return os.environ['OQS_BUILD_DIR'][len(os.getcwd())+1:]
|
|
||||||
return 'build'
|
return 'build'
|
||||||
|
|
||||||
def path_to_executable(program_name):
|
def path_to_executable(program_name):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user