项目作者: timkruse

项目描述 :
C++ makefile project based on the LLVM/clang infrastructure.
高级语言: Makefile
项目地址: git://github.com/timkruse/macos-llvm-playgorund.git
创建时间: 2019-09-06T12:54:01Z
项目社区:https://github.com/timkruse/macos-llvm-playgorund

开源协议:MIT License

下载


LLVM/clang makefile project

This makefile project is tested with macOS 10.14.6 and clang version 8.0.1.
This project is configured to build within VS Code, too.

Quick Start

Install LLVM/clang

  1. $ brew install llvm

Adjust the LLVM_PATH variable in the makefile to your system

  1. LLVM_PATH := /usr/local/opt/llvm

Build and run

  1. $ make run

Print supported make targets

  1. $ make help

Generate auxilliary files (preprocessor, assembler, llvm-ir)

Add aux=y to the make target. E.g.:

  1. $ make all aux=y

VS Code

  • Build the project with Command+b
  • Run the project with Command+r
  • Clean the project with Command+Shift+k