Skip to content

Commit

Permalink
Update build glue to build default llvm tools for world.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryAndric committed Feb 9, 2024
1 parent 1e1229d commit 0e60a9e
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions usr.bin/clang/llvm-dwp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PROG_CXX= llvm-dwp
MAN=

SRCDIR= llvm/tools/llvm-dwp
SRCS+= llvm-dwp-driver.cpp
SRCS+= llvm-dwp.cpp

.include "${SRCTOP}/lib/clang/llvm.pre.mk"
Expand Down
16 changes: 16 additions & 0 deletions usr.bin/clang/llvm-dwp/llvm-dwp-driver.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//===-- driver-template.cpp -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/Support/LLVMDriver.h"
#include "llvm/ADT/ArrayRef.h"

int llvm_dwp_main(int argc, char **, const llvm::ToolContext &);

int main(int argc, char **argv) {
return llvm_dwp_main(argc, argv, {argv[0], nullptr, false});
}
1 change: 1 addition & 0 deletions usr.bin/clang/llvm-objdump/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SRCS+= OffloadDump.cpp
SRCS+= SourcePrinter.cpp
SRCS+= WasmDump.cpp
SRCS+= XCOFFDump.cpp
SRCS+= llvm-objdump-driver.cpp
SRCS+= llvm-objdump.cpp

.include "${SRCTOP}/lib/clang/llvm.pre.mk"
Expand Down
16 changes: 16 additions & 0 deletions usr.bin/clang/llvm-objdump/llvm-objdump-driver.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//===-- driver-template.cpp -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/Support/LLVMDriver.h"
#include "llvm/ADT/ArrayRef.h"

int llvm_objdump_main(int argc, char **, const llvm::ToolContext &);

int main(int argc, char **argv) {
return llvm_objdump_main(argc, argv, {argv[0], nullptr, false});
}
1 change: 1 addition & 0 deletions usr.bin/clang/llvm-symbolizer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ PROG_CXX= llvm-symbolizer
MAN= llvm-symbolizer.1 llvm-addr2line.1

SRCDIR= llvm/tools/llvm-symbolizer
SRCS+= llvm-symbolizer-driver.cpp
SRCS+= llvm-symbolizer.cpp

.include "${SRCTOP}/lib/clang/llvm.pre.mk"
Expand Down
16 changes: 16 additions & 0 deletions usr.bin/clang/llvm-symbolizer/llvm-symbolizer-driver.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//===-- driver-template.cpp -----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/Support/LLVMDriver.h"
#include "llvm/ADT/ArrayRef.h"

int llvm_symbolizer_main(int argc, char **, const llvm::ToolContext &);

int main(int argc, char **argv) {
return llvm_symbolizer_main(argc, argv, {argv[0], nullptr, false});
}

0 comments on commit 0e60a9e

Please sign in to comment.