Page MenuHomePhabricator

calebzulawski (Caleb Zulawski)
User

Projects

User does not belong to any projects.

User Details

User Since
Sep 22 2021, 10:01 AM (79 w, 3 d)

Recent Activity

Wed, Mar 22

calebzulawski added a comment to D146404: Improve min/max vector reductions on arm.

You can use "Caleb Zulawski <caleb.zulawski@gmail.com>", thanks!

Wed, Mar 22, 7:28 AM · Restricted Project, Restricted Project
calebzulawski added a comment to D146404: Improve min/max vector reductions on arm.

Thanks! Made that small change. By the way, I don't have commit access, if you or @nikic could commit it for me.

Wed, Mar 22, 6:16 AM · Restricted Project, Restricted Project
calebzulawski updated the diff for D146404: Improve min/max vector reductions on arm.
Wed, Mar 22, 6:13 AM · Restricted Project, Restricted Project

Mon, Mar 20

calebzulawski updated the diff for D146404: Improve min/max vector reductions on arm.
Mon, Mar 20, 8:18 PM · Restricted Project, Restricted Project
calebzulawski added a comment to D146404: Improve min/max vector reductions on arm.

Thanks for the great review! I haven't touched codegen before, this helped quite a bit.

Mon, Mar 20, 8:14 PM · Restricted Project, Restricted Project
calebzulawski updated the diff for D146404: Improve min/max vector reductions on arm.
Mon, Mar 20, 8:09 PM · Restricted Project, Restricted Project

Sun, Mar 19

calebzulawski requested review of D146404: Improve min/max vector reductions on arm.
Sun, Mar 19, 10:10 PM · Restricted Project, Restricted Project
calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Corrected docs and updated upstream

Sun, Mar 19, 3:15 PM · Restricted Project, Restricted Project

Jan 20 2023

calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

I definitely feel like if to fix your problem, a reverse option like -infer-sdkroot-from-xcrun might be better/safer but it doesn't help the general case where people doesn't know /usr/bin/clang is different from a regular clang that a regular clang needs to pass -isysroot.

Jan 20 2023, 4:11 PM · Restricted Project, Restricted Project
calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.
Jan 20 2023, 4:00 PM · Restricted Project, Restricted Project
calebzulawski added inline comments to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.
Jan 20 2023, 11:43 AM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

In my situation, at least, I am the vendor of the toolchain and my configuration file contains --sysroot=<CFGDIR>/../path/to/sysroot with a known relative path to where the sysroot is distributed. Apple is unique in this situation, since I am not distributing the sysroot, so there is no equivalent to using the <CFGDIR> variable. There is no way to invoke xcrun or set SDKROOT from config files, only pass flags.

Jan 20 2023, 11:40 AM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

If SDKROOT is set or -isysroot is passed, xcrun won't be called so there is no regression for existing use cases like CMake. Additionally, if xcrun isn't found, no error is emitted. I also added the --no-detect-xcode flag based on similar feedback that it may not always be desirable.

Jan 20 2023, 10:37 AM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

That makes more sense, I thought perhaps it was using DEFAULT_SYSROOT. The shim isn't smart enough to choose the sysroot from the target unfortunately.

Jan 20 2023, 10:03 AM · Restricted Project, Restricted Project

Jan 19 2023

calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

This revision is basically the same as before, but with two changes:

  • darwin targets (e.g. x86_64-apple-darwin) do not automatically detect the SDK. There is another bug where these targets don't seem to properly pass the target version (e.g. x86_64-apple-darwin9) whenever an SDK is provided.
  • A new flag --no-detect-xcode disables this detection.
Jan 19 2023, 7:09 PM · Restricted Project, Restricted Project
calebzulawski reopened D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

@thakis thanks. I have an updated revision that can be reviewed properly.

Jan 19 2023, 6:33 PM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

@jryans thanks.

Jan 19 2023, 4:47 PM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

One thing to throw into the mix: Apple's clang has a default sysroot configured, so with the default system compiler, there is no way to replicate this "build without a sysroot" scenario as far as I can tell. For the system compiler, I believe this behavior is a strict improvement.

Jan 19 2023, 3:16 PM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

I don't think we necessarily need to revert due to the xcrun quirk since I think it's harmless, though I can provide a follow up change if necessary. I just checked Rust's source as a comparison and it appears that for macOS targets it will always attempt to invoke xcrun regardless of host as well.

Needlessly spawning additional processes doesn't seem "harmless" to me.

If you can fix quickly, sure, do that.

I could see a macOS cross-compiler environment providing an xcrun replacement, for example.

That's theoretically possible I suppose, but it doesn't exist. No mac cross compiling uses xcrun.

Sorry, I agree that we shouldn't do things needlessly, but xcrun is only invoked if the compiler otherwise can't figure out the sysroot. I just tried using --target=x86_64-apple-macos on its own on Linux and sure enough the sysroot included /usr/include etc, which is surely also wrong. I suspect any existing cross-compiler environments either set SDKROOT or pass a sysroot flag, otherwise they wouldn't work (and this change doesn't affect them).

Jan 19 2023, 7:31 AM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

I don't think we necessarily need to revert due to the xcrun quirk since I think it's harmless, though I can provide a follow up change if necessary. I just checked Rust's source as a comparison and it appears that for macOS targets it will always attempt to invoke xcrun regardless of host as well. I could see a macOS cross-compiler environment providing an xcrun replacement, for example. The test failures are another issue but I still don't quite understand the cause.

Jan 19 2023, 6:06 AM · Restricted Project, Restricted Project

Jan 18 2023

calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Are those failures on Linux? I only developed this change on macOS, but the automated tests passed...

Jan 18 2023, 7:08 PM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

@jryans I do not, I would appreciate that. Thanks!

Jan 18 2023, 5:52 AM · Restricted Project, Restricted Project

Jan 17 2023

calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Happy new year all--
Is there anything left for me to do before this can be merged? Thanks!

Jan 17 2023, 1:07 PM · Restricted Project, Restricted Project

Dec 16 2022

calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Looks like the failure was somehow in clangd? Trying to trigger another build.

Dec 16 2022, 4:58 PM · Restricted Project, Restricted Project

Dec 15 2022

calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Update user manual

Dec 15 2022, 7:49 PM · Restricted Project, Restricted Project

Dec 13 2022

calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Update diff for upstream changes

Dec 13 2022, 8:38 PM · Restricted Project, Restricted Project
calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Update comment

Dec 13 2022, 3:36 PM · Restricted Project, Restricted Project

Dec 3 2022

calebzulawski added a reviewer for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified: MaskRay.
Dec 3 2022, 3:50 PM · Restricted Project, Restricted Project

Nov 17 2022

calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Is there any update to this? Or maybe someone I should add as a reviewer? Thanks!

Nov 17 2022, 7:05 AM · Restricted Project, Restricted Project

Oct 23 2022

calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Move SDK detection to its own test.

Oct 23 2022, 9:05 AM · Restricted Project, Restricted Project

Oct 22 2022

calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Try to fix windows test

Oct 22 2022, 8:12 PM · Restricted Project, Restricted Project
calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Fix test using RUN in CHECK prefix

Oct 22 2022, 5:50 PM · Restricted Project, Restricted Project
calebzulawski added inline comments to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.
Oct 22 2022, 3:28 PM · Restricted Project, Restricted Project
calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Fix formatting, error on unrecognized OS, skip tests if xcrun isn't present.

Oct 22 2022, 3:26 PM · Restricted Project, Restricted Project
calebzulawski added inline comments to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.
Oct 22 2022, 9:17 AM · Restricted Project, Restricted Project
calebzulawski added inline comments to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.
Oct 22 2022, 8:55 AM · Restricted Project, Restricted Project
calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Use switch when detecting OS. Limit sdkroot test to darwin platforms.

Oct 22 2022, 8:53 AM · Restricted Project, Restricted Project
calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Change tests to specifically remove SDKROOT environment variable.

Oct 22 2022, 8:02 AM · Restricted Project, Restricted Project

Oct 21 2022

calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Thanks for picking this up! I looked at my local changes and I had started modifying inferDeploymentTargetFromSDK. I had left the comment:

/// TODO: We should only infer it if the SDK was provided with SDKROOT or -isysroot.
///       If we inferred the SDK with xcrun, it doesn't make sense to infer the
///       deployment target because <REASONS>

I don't remember what I was thinking at the time, but I encourage you to pause for a minute and think about it. I can't think of the reason anymore. If you cant' either, maybe just disregard my comment entirely.

Oct 21 2022, 9:02 PM · Restricted Project, Restricted Project
calebzulawski updated the diff for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

Changed to not invoke xcrun if the SDK name can't be determined.

Oct 21 2022, 8:56 PM · Restricted Project, Restricted Project

Oct 20 2022

calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

If clang -target arm64-apple-ios -isysroot path/to/MacOSX.sdk changes the target to x86_64-apple-macos to match the SDK, that would be very confusing behavior :) I'll have to investigate that function some more.

Oct 20 2022, 8:34 AM · Restricted Project, Restricted Project
calebzulawski added a comment to D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.

That's a good point, I was a little suspicious about that function.

Oct 20 2022, 8:32 AM · Restricted Project, Restricted Project

Oct 19 2022

calebzulawski added a reviewer for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified: arphaman.
Oct 19 2022, 9:50 PM · Restricted Project, Restricted Project
calebzulawski added a reviewer for D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified: ldionne.
Oct 19 2022, 9:49 PM · Restricted Project, Restricted Project
calebzulawski retitled D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified from Diff 2 to [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.
Oct 19 2022, 9:46 PM · Restricted Project, Restricted Project
calebzulawski requested review of D136315: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified.
Oct 19 2022, 9:45 PM · Restricted Project, Restricted Project

Oct 15 2022

Herald added a project to D109460: [clang][Darwin] Try to guess the SDK root with xcrun when unspecified: Restricted Project.

I'm interested in this feature--is there any reason this wasn't completed? If not, I might be able to take over implementing this.

Oct 15 2022, 3:44 PM · Restricted Project, Restricted Project

Sep 13 2022

calebzulawski retitled D133778: Fix LLDB build on old Linux kernels (pre-4.1) from Fix LLDB build on old Linux kernels to Fix LLDB build on old Linux kernels (pre-4.1).
Sep 13 2022, 8:28 AM · Restricted Project, Restricted Project
calebzulawski added a comment to D133778: Fix LLDB build on old Linux kernels (pre-4.1).

In terms of who calls it and might error, it looks like it's all used in IntelPTMultiCoreTrace.cpp

Sep 13 2022, 8:25 AM · Restricted Project, Restricted Project
calebzulawski added a comment to D133778: Fix LLDB build on old Linux kernels (pre-4.1).

I'm not exactly sure what llvm_unreachable does, but I don't believe it will return 0 (maybe it aborts?)

Sep 13 2022, 8:22 AM · Restricted Project, Restricted Project
calebzulawski requested review of D133778: Fix LLDB build on old Linux kernels (pre-4.1).
Sep 13 2022, 7:54 AM · Restricted Project, Restricted Project

Sep 22 2021

calebzulawski requested review of D110269: Fix LLDB build on old Linux kernels.
Sep 22 2021, 10:15 AM · Restricted Project