From 0ac8c3aa841212a193bcf027025521f7adf71255 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 26 Aug 2024 16:37:27 +0900 Subject: Draft base clang plugin --- goatcflags | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 goatcflags (limited to 'goatcflags') diff --git a/goatcflags b/goatcflags new file mode 100755 index 0000000..973d4f9 --- /dev/null +++ b/goatcflags @@ -0,0 +1,23 @@ +#!/bin/sh +# CFLAGS generator for Clang plugin +# Copyright (C) 2024 Nguyễn Gia Phong +# +# This file is part of GoatC. +# +# GoatC is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# GoatC is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with GoatC. If not, see . + +printf " -fplugin=goatc.so" +for arg in "$@" +do printf ' -fplugin-arg-goatc-%s' "$arg" +done -- cgit 1.4.1