aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorAnutosh Bhat <andersonbhat491@gmail.com>2024-11-29 15:31:02 +0530
committerGitHub <noreply@github.com>2024-11-29 12:01:02 +0200
commita174aa1e416c4e27945f5a8c646b119126dc8441 (patch)
treee01f1dcbbf55ddff98e0063533b6f13d175a3efb /clang/lib/Interpreter/Interpreter.cpp
parented7f36e1ecc26d6360126fc6ed0514b592fcc029 (diff)
downloadllvm-a174aa1e416c4e27945f5a8c646b119126dc8441.zip
llvm-a174aa1e416c4e27945f5a8c646b119126dc8441.tar.gz
llvm-a174aa1e416c4e27945f5a8c646b119126dc8441.tar.bz2
[clang-repl] Fix generation of wasm binaries while running clang-repl in browser (#117978)
Co-authored-by: Vassil Vassilev <v.g.vassilev@gmail.com>
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r--clang/lib/Interpreter/Interpreter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index 5dc67f6..887b494 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -201,6 +201,7 @@ IncrementalCompilerBuilder::CreateCpp() {
Argv.push_back("-target");
Argv.push_back("wasm32-unknown-emscripten");
Argv.push_back("-shared");
+ Argv.push_back("-fvisibility=default");
#endif
Argv.insert(Argv.end(), UserArgs.begin(), UserArgs.end());