-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Followup to #24154, packages aren't ready for macos 14 (M1/ARM CPU) yet and it seems to be preview on azure, so upgrade to macos 13 for now. Macos 12 gives a warning: ``` You are using macOS 12. We (and Apple) do not provide support for this old version. It is expected behaviour that some formulae will fail to build in this old version. It is expected behaviour that Homebrew will be buggy and slow. Do not create any issues about this on Homebrew's GitHub repositories. Do not create any issues even if you think this message is unrelated. Any opened issues will be immediately closed without response. Do not ask for help from Homebrew or its maintainers on social media. You may ask for help in Homebrew's discussions but are unlikely to receive a response. Try to figure out the problem yourself and submit a fix as a pull request. We will review it but may or may not accept it. ``` (cherry picked from commit 4a63186)
- Loading branch information
Showing
11 changed files
with
58 additions
and
11 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
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ discard """ | |
output: ''' | ||
6.0 | ||
0''' | ||
disabled: "windows" # pending bug #18011 | ||
""" | ||
|
||
# bug #4730 | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,6 @@ discard """ | |
output: ''' | ||
int | ||
float''' | ||
disabled: "windows" # pending bug #18011 | ||
""" | ||
|
||
import typetraits | ||
|
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,38 @@ | ||
discard """ | ||
# doesn't work on macos 13 seemingly due to libc++ linking issue https://stackoverflow.com/a/77375947 | ||
disabled: osx | ||
targets: cpp | ||
""" | ||
|
||
# manual example | ||
|
||
type | ||
CStdException {.importcpp: "std::exception", header: "<exception>", inheritable.} = object | ||
## does not inherit from `RootObj`, so we use `inheritable` instead | ||
CRuntimeError {.requiresInit, importcpp: "std::runtime_error", header: "<stdexcept>".} = object of CStdException | ||
## `CRuntimeError` has no default constructor => `requiresInit` | ||
proc what(s: CStdException): cstring {.importcpp: "((char *)#.what())".} | ||
proc initRuntimeError(a: cstring): CRuntimeError {.importcpp: "std::runtime_error(@)", constructor.} | ||
proc initStdException(): CStdException {.importcpp: "std::exception()", constructor.} | ||
|
||
proc fn() = | ||
let a = initRuntimeError("foo") | ||
doAssert $a.what == "foo" | ||
var b: cstring | ||
try: raise initRuntimeError("foo2") | ||
except CStdException as e: | ||
doAssert e is CStdException | ||
b = e.what() | ||
doAssert $b == "foo2" | ||
|
||
try: raise initStdException() | ||
except CStdException: discard | ||
|
||
try: raise initRuntimeError("foo3") | ||
except CRuntimeError as e: | ||
b = e.what() | ||
except CStdException: | ||
doAssert false | ||
doAssert $b == "foo3" | ||
|
||
fn() |
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