From 2ec9e49075b5f8afef7021ee31bf57fde94f2a92 Mon Sep 17 00:00:00 2001 From: FrancoGiachetta Date: Thu, 3 Jul 2025 11:23:24 -0300 Subject: [PATCH 1/3] add rust-analyzer config to readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6f50d3e79..ddd70d86e 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,18 @@ the needed environment variables. source env.sh ``` +##### Vscode: rust-analyzer (only MacOS) +If you are using vscode as your code editor, you'll need to add this to you settings.json: +```json +"rust-analyzer.cargo.extraEnv": { + "LIBRARY_PATH": "/opt/homebrew/lib", + "MLIR_SYS_190_PREFIX": "", + "LLVM_SYS_191_PREFIX": "", + "TABLEGEN_190_PREFIX": "", +} +``` +Without this additional config, rust-analyzer won't be able to work properly + ### Make targets: Running `make` by itself will check whether the required LLVM installation and corelib is found, and then list available targets. From 89e90809b634e998aad96e7139f17b4e60ceadda Mon Sep 17 00:00:00 2001 From: FrancoGiachetta Date: Thu, 3 Jul 2025 11:28:19 -0300 Subject: [PATCH 2/3] change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ddd70d86e..39eade9c9 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ the needed environment variables. source env.sh ``` -##### Vscode: rust-analyzer (only MacOS) +#### rust-analyzer config for Vscode(only MacOS) If you are using vscode as your code editor, you'll need to add this to you settings.json: ```json "rust-analyzer.cargo.extraEnv": { From a53dcfc7dd5e7c4f5f6b592a65d0e12beca58ac2 Mon Sep 17 00:00:00 2001 From: FrancoGiachetta Date: Thu, 3 Jul 2025 11:32:43 -0300 Subject: [PATCH 3/3] update --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 39eade9c9..0cd10f199 100644 --- a/README.md +++ b/README.md @@ -133,16 +133,19 @@ the needed environment variables. source env.sh ``` -#### rust-analyzer config for Vscode(only MacOS) +#### Configure rust-analyzer for Vscode If you are using vscode as your code editor, you'll need to add this to you settings.json: ```json "rust-analyzer.cargo.extraEnv": { - "LIBRARY_PATH": "/opt/homebrew/lib", "MLIR_SYS_190_PREFIX": "", "LLVM_SYS_191_PREFIX": "", "TABLEGEN_190_PREFIX": "", } ``` +if you are on MacOs, you'll need to add this extra line: +```json +"LIBRARY_PATH": "/opt/homebrew/lib", +``` Without this additional config, rust-analyzer won't be able to work properly ### Make targets: