Skip to content

Commit

Permalink
add hidden visibility flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Oct 17, 2024
1 parent bd34ca1 commit 12ac397
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,10 @@ public List<String> 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;
}

0 comments on commit 12ac397

Please sign in to comment.