Skip to content

Commit

Permalink
add hidden visibility flag (#4666)
Browse files Browse the repository at this point in the history
This PR adds a flag to kompile which passes through to the llvm backend.
Fairly straightforward.
  • Loading branch information
dwightguth authored Oct 17, 2024
1 parent 2d26b93 commit 82039ee
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 82039ee

Please sign in to comment.