forked from triton-lang/triton
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
4 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,10 @@ | ||
"""Bazel macros used by the triton build.""" | ||
|
||
def if_msvc(if_true, if_false = []): | ||
return select({ | ||
":compiler_is_msvc": if_true, | ||
"//conditions:default": if_false, | ||
}) | ||
|
||
def if_not_msvc(a): | ||
return if_msvc([], a) |