<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
At a guess if you really wanna do this, you could have a parent
CMakeLists.txt which would include the LLVM CMakeLists.txt, and in
the parent one you'd want to override add_executable (like in this
example <a class="moz-txt-link-freetext" href="https://cmake.org/pipermail/cmake/2011-March/043320.html">https://cmake.org/pipermail/cmake/2011-March/043320.html</a>) to
change the name of the executable target. Your best to do
set_target_properties
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<span style="color: rgb(0, 0, 0); font-family: sans-serif;
font-size: 16px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: 20.8px;
orphans: auto; text-align: justify; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
!important; float: none; background-color: rgb(255, 255, 255);">with
OUTPUT_NAME to do that.<br>
<br>
No idea if this works, but I've done similar horrific things in
CMake before and they tend to work.<br>
<br>
Best of luck,<br>
<br>
-Neil.<br>
</span><br>
<div class="moz-cite-prefix">On 26/01/16 16:41, Johnson, Nicholas
Paul via llvm-dev wrote:<br>
</div>
<blockquote
cite="mid:c4c93e08d5264e3aae70196d62a09b76@mbxtoa2.winmail.deshaw.com"
type="cite">
<pre wrap="">Thanks, Chris, for your reply.
</pre>
<blockquote type="cite">
<pre wrap="">I'm a little curious why you want it.
</pre>
</blockquote>
<pre wrap="">
We want to use the clang+llvm toolchain for two different targets: x86-64 and our in-house architectures. We find it useful to compile these targets into separate binaries for a few reasons:
(1) Our targets use different libc implementations (glibc vs newlib) and must be configured with different sysroots. AFAICT, DEFAULT_SYSROOT is not a target-specific configuration variable.
(2) Whereas our x86 target is vanilla clang/llvm, our in-house target is more experimental. It's handy to segregate the experimental features, especially for some of our users who just want to use a stable compiler.
and,
(3) Inertia: this is how we have done it in the past with previous, gcc-based iterations of the toolchain.
Thanks,
Nick
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:cbieneman@apple.com">cbieneman@apple.com</a> [<a class="moz-txt-link-freetext" href="mailto:cbieneman@apple.com">mailto:cbieneman@apple.com</a>]
Sent: Monday, January 25, 2016 12:26 PM
To: Johnson, Nicholas Paul
Subject: Re: [llvm-dev] cmake: program name prefix?
Our current CMake doesn't support that. It could probably be added, but I'm a
little curious why you want it. I don't think opt and llc are setup to read their
targets from their names, and in general those tools aren't really designed to
be shipped as part of a toolchain.
_Chris
Sent from my iPad
</pre>
<blockquote type="cite">
<pre wrap="">On Jan 19, 2016, at 8:48 AM, Johnson, Nicholas Paul via llvm-dev <llvm-
</pre>
</blockquote>
<pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:dev@lists.llvm.org">dev@lists.llvm.org</a>> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Using cmake, is it possible to specify a prefix string to prepended to all
</pre>
</blockquote>
<pre wrap="">installed executable files? For example, the executable file prefix "x86-
linux-elf-" would result in executables named "x86-linux-elf-opt", "x86-
linux-elf-llc", etc.
</pre>
<blockquote type="cite">
<pre wrap="">
Thanks,
Nick Johnson
D. E. Shaw Research
_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
</blockquote>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>