https://github.com/byteshiva/llvm-linker-clang-example
LLVM Linker Clang - Example
https://github.com/byteshiva/llvm-linker-clang-example
Last synced: 8 months ago
JSON representation
LLVM Linker Clang - Example
- Host: GitHub
- URL: https://github.com/byteshiva/llvm-linker-clang-example
- Owner: byteshiva
- License: mit
- Created: 2024-01-01T14:44:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-01T17:20:37.000Z (over 2 years ago)
- Last Synced: 2025-10-14T20:37:12.616Z (8 months ago)
- Language: Nix
- Homepage: https://medium.com/@byteshiva/using-llvm-linker-in-nix-flakes-143a0a95c878
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LLVM Linker Example with Clang and Nix Flakes
This repository contains an example project demonstrating the usage of the LLVM linker with Clang in the context of Nix Flakes.
## Prerequisites
Ensure you have Nix installed on your system. If not, you can install it by following the instructions [here](https://nixos.org/download#download-nix).
## Usage
1. Clone this repository:
```bash
git clone https://github.com/byteshiva/llvm-linker-clang-example.git
```
2. Navigate to the project directory:
```bash
cd llvm-linker-clang-example
```
3. Enter the Nix development environment:
```bash
nix develop
```
4. Build and run the program:
```bash
./my_program
```
This will compile the source files, create a library, and link them using Clang and LLVM.
Feel free to explore the project and modify it according to your needs!
---
Users can follow these simple steps to set up and run the LLVM linker example project.