diff --git a/deps/haskell-backend_release b/deps/haskell-backend_release index 2976b5a1a5..bbf629f607 100644 --- a/deps/haskell-backend_release +++ b/deps/haskell-backend_release @@ -1 +1 @@ -v0.1.89 +v0.1.90 diff --git a/flake.lock b/flake.lock index b58f139653..facd63ca65 100644 --- a/flake.lock +++ b/flake.lock @@ -65,16 +65,16 @@ "z3": "z3" }, "locked": { - "lastModified": 1729079440, - "narHash": "sha256-wQi5GIW51rx33FPFZE+8ug28hYhOFNmPwbwllGPOK+o=", + "lastModified": 1729168859, + "narHash": "sha256-S9Vx0p6kDorS9NwnZb+QOTGpMKXwGlchCiiow881nTs=", "owner": "runtimeverification", "repo": "haskell-backend", - "rev": "4fb57a8842d04ba0ce27393f7073feb21539118b", + "rev": "712543ed61f5ca4365b84d0f7ef6d71a35349662", "type": "github" }, "original": { "owner": "runtimeverification", - "ref": "v0.1.89", + "ref": "v0.1.90", "repo": "haskell-backend", "type": "github" } diff --git a/flake.nix b/flake.nix index 019c27641d..6eeb1a519b 100644 --- a/flake.nix +++ b/flake.nix @@ -3,7 +3,7 @@ inputs = { llvm-backend.url = "github:runtimeverification/llvm-backend/v0.1.100"; haskell-backend = { - url = "github:runtimeverification/haskell-backend/v0.1.89"; + url = "github:runtimeverification/haskell-backend/v0.1.90"; inputs.rv-utils.follows = "llvm-backend/rv-utils"; inputs.nixpkgs.follows = "llvm-backend/nixpkgs"; }; diff --git a/haskell-backend/src/main/native/haskell-backend b/haskell-backend/src/main/native/haskell-backend index 4fb57a8842..712543ed61 160000 --- a/haskell-backend/src/main/native/haskell-backend +++ b/haskell-backend/src/main/native/haskell-backend @@ -1 +1 @@ -Subproject commit 4fb57a8842d04ba0ce27393f7073feb21539118b +Subproject commit 712543ed61f5ca4365b84d0f7ef6d71a35349662 diff --git a/llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMBackend.java b/llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMBackend.java index 420f6c1676..e154e7b653 100644 --- a/llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMBackend.java +++ b/llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMBackend.java @@ -146,6 +146,9 @@ private void llvmKompile(String type, String executable) { if (options.llvmMutableBytes) { args.add("--mutable-bytes"); } + if (options.llvmHiddenVisibility) { + args.add("--hidden-visibility"); + } if (options.debug) { args.add("-g"); diff --git a/llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMKompileOptions.java b/llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMKompileOptions.java index 282b58c2f0..b330a5268a 100644 --- a/llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMKompileOptions.java +++ b/llvm-backend/src/main/java/org/kframework/backend/llvm/LLVMKompileOptions.java @@ -119,4 +119,10 @@ public List convert(String str) { description = "Use a faster, unsound representation for byte arrays on the LLVM backend", hidden = true) public boolean llvmMutableBytes; + + @Parameter( + names = "--llvm-hidden-visibility", + description = "Build the llvm backend with -fvisibility=hidden", + hidden = true) + public boolean llvmHiddenVisibility; }