Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llvm-config: Add preliminary Windows support
Summary: This patch adds Windows support for a few of the llvm-config commands, including cflags, ldflags, libs, and system-libs. Currently llvm-config is untested, so this patch adds tests for the commands that it fixes as well. Reviewers: rnk Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16762 llvm-svn: 260263
- Loading branch information
Showing
9 changed files
with
113 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RUN: llvm-config --cflags 2>&1 | FileCheck %s | ||
RUN: llvm-config --cppflags 2>&1 | FileCheck %s | ||
RUN: llvm-config --cxxflags 2>&1 | FileCheck %s | ||
CHECK: -I | ||
CHECK: {{[/\\]}}include | ||
CHECK-NOT: error | ||
CHECK-NOT: warning |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
RUN: llvm-config --ldflags 2>&1 | FileCheck %s | ||
CHECK: -L | ||
CHECK: {{[/\\]}}lib | ||
CHECK-NOT: error | ||
CHECK-NOT: warning |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
RUN: llvm-config --libs core 2>&1 | FileCheck %s | ||
CHECK: LLVMCore | ||
CHECK: LLVMSupport | ||
CHECK-NOT: error | ||
CHECK-NOT: warning |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
RUN: llvm-config --system-libs 2>&1 | FileCheck %s | ||
UNSUPPORTED: system-windows | ||
CHECK: -l | ||
CHECK-NOT: error | ||
CHECK-NOT: warning |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
RUN: llvm-config --system-libs 2>&1 | FileCheck %s | ||
REQUIRED: system-windows | ||
CHECK-NOT: -l | ||
CHECK: psapi.lib shell32.lib ole32.lib uuid.lib | ||
CHECK-NOT: error | ||
CHECK-NOT: warning |
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