all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arthur Miller <arthur.miller@live.com>
To: mrf <joinlaw@cock.li>
Cc: help-gnu-emacs@gnu.org, Emanuel Berg <moasenwood@zoho.eu>
Subject: Re: Running makefiles from emacs
Date: Fri, 02 Jul 2021 11:00:55 +0200	[thread overview]
Message-ID: <AM9PR09MB497781D79585C7FD056FA3D8961F9@AM9PR09MB4977.eurprd09.prod.outlook.com> (raw)
In-Reply-To: <8735sxf7tc.fsf@cock.li> (mrf's message of "Fri, 02 Jul 2021 11:13:00 +0300")

mrf <joinlaw@cock.li> writes:

> Arthur Miller writes:
>>
>> Yes, TCC comes with a similar hack, but the C script is independent of
>> the compiler and you don't need to clutter each and every file with bash
>> script and linker/compiler directives in each file either.
>
> Yes exactly, I can make this line smaller (with one line) without my file time stamp
> hack but then it will compile each time I run this script and also I can
> use cc instead of gcc which will select default compiler in your system.
>
> What makes me believe my hack is better than Tiny CC and what you send
> is that my hack gives my the ability to use all the compiler
> optimizations of gcc (performant scripts).

Check examples in posted C shell script. You can pass one liner she-bang
with linker/compiler flags on that line. That is still way much less clutter
than what you suggest with your solution :-). Sorry, but your solution
requires you to add shell script to every c source file you wish to use
as a "single source program" as you put it, and in addition even help
from Emacs.



  reply	other threads:[~2021-07-02  9:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28  0:07 Running makefiles from emacs lisa-asket
2021-06-28  0:58 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-28  2:13   ` lisa-asket
2021-06-28  4:14   ` mrf
2021-06-29 10:34     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-29 10:59       ` mrf
2021-06-30 19:04         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-30 19:49           ` mrf
2021-07-01  8:39             ` Arthur Miller
2021-07-01  9:33               ` mrf
2021-07-01 18:18                 ` Arthur Miller
2021-07-02  8:13                   ` mrf
2021-07-02  9:00                     ` Arthur Miller [this message]
2021-07-02 17:13                       ` mrf
2021-07-02 18:24                         ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-02  4:32                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-01 18:55             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-07-02  7:44               ` mrf
2021-07-02 11:00                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-06-28 10:37 ` Arthur Miller
2021-06-28 14:05   ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM9PR09MB497781D79585C7FD056FA3D8961F9@AM9PR09MB4977.eurprd09.prod.outlook.com \
    --to=arthur.miller@live.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joinlaw@cock.li \
    --cc=moasenwood@zoho.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.