-
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2142 from kinke/archiver
Integrate LLD for MSVC targets; prepare for other targets
- Loading branch information
Showing
21 changed files
with
892 additions
and
738 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,19 @@ | ||
//===-- driver/archiver.h - Creating static libs via LLVM--------*- C++ -*-===// | ||
//===-- driver/archiver.h - Creating static libraries -----------*- C++ -*-===// | ||
// | ||
// LDC – the LLVM D compiler | ||
// | ||
// This file is distributed under the BSD-style LDC license. See the LICENSE | ||
// file for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// Provides an interface to LLVM built-in static lib generation via llvm-lib | ||
// (MSVC targets) or llvm-ar (all other targets). | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LDC_DRIVER_ARCHIVER_H | ||
#define LDC_DRIVER_ARCHIVER_H | ||
|
||
#if LDC_LLVM_VER >= 309 | ||
#include "llvm/ADT/ArrayRef.h" | ||
|
||
namespace ldc { | ||
int ar(llvm::ArrayRef<const char *> args); | ||
int lib(llvm::ArrayRef<const char *> args); | ||
} | ||
#endif // LDC_LLVM_VER >= 309 | ||
/** | ||
* Create a static library from object files. | ||
* @return 0 on success. | ||
*/ | ||
int createStaticLibrary(); | ||
|
||
#endif // !LDC_DRIVER_ARCHIVER_H |
Oops, something went wrong.