From 5992cdfdafc0450d0cc2cd9157703749a6de13af Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 6 Nov 2019 12:03:32 +0100 Subject: [PATCH] Build script changes for occt 7.4 --- nix/build-all.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/build-all.py b/nix/build-all.py index a9cdee6c2f..ad645a6b50 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -539,11 +539,12 @@ if USE_OCCT and "occ" in targets: "-DINSTALL_DIR={DEPS_DIR}/install/occt-{OCCT_VERSION}".format(**locals()), "-DBUILD_LIBRARY_TYPE={LINK_TYPE_UCFIRST}".format(**locals()), "-DBUILD_MODULE_Draw=0", + "-DBUILD_RELEASE_DISABLE_EXCEPTIONS=Off" ], download_url = "https://git.dev.opencascade.org/repos/occt.git", download_name = "occt", download_tool=download_tool_git, - patch="./patches/occt/enable-exception-handling.patch", + patch=None if OCCT_VERSION >= "7.4" else "./patches/occt/enable-exception-handling.patch", revision="V" + OCCT_VERSION.replace('.', '_') ) elif "occ" in targets: