1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Description: On Debian, /usr/bin/clang does not exist. Specify exact compiler
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2024-11-25
Forwarded: not-needed
--- a/src/bin/lfortran.cpp
+++ b/src/bin/lfortran.cpp
@@ -1758,7 +1758,7 @@
std::cerr << "WASI_SDK_PATH must be defined to use llvm->wasm\n";
return 11;
}
- CC = std::string(wasi_sdk_path) + "/bin/clang";
+ CC = std::string(wasi_sdk_path) + "/bin/clang-19";
options = " --target=wasm32-wasi -nostartfiles -Wl,--entry=_start -Wl,-lwasi-emulated-process-clocks";
runtime_lib = "lfortran_runtime_wasm_wasi.o";
compile_cmd = CC + options + " -o " + outfile + " ";
@@ -1810,11 +1810,11 @@
// TODO: Add support for msvc linker for Windows
// TODO: Add support for lld linker
// Default linker to be used
- CC += "clang";
+ CC += "clang-19";
}
if (compiler_options.target != "" &&
- CC.find("clang" ) != std::string::npos) {
+ CC.find("clang-19" ) != std::string::npos) {
options = " -target " + compiler_options.target;
}
|