Skip to content

Comments

Propagate microarchitecture flags to C++ build.#53

Merged
adam-azarchs merged 1 commit intomasterfrom
azarchs/flags
Dec 10, 2022
Merged

Propagate microarchitecture flags to C++ build.#53
adam-azarchs merged 1 commit intomasterfrom
azarchs/flags

Conversation

@adam-azarchs
Copy link
Member

Also, update CI rust version to 1.65, and fix clippy lints.

Also, update CI rust version to 1.65, and fix clippy lints.
.compile("orbit");
.flag("-fvisibility=hidden");

if cfg!(target_feature = "sse3") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking out loud: Are we going to be applying this pattern to other repositories? Would it make sense to put this in a crate for sharing across repos?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately macros don't share easily. Really this should be a thing that cc just knows how to do itself. (I guess I should probably check whether it does, now that I think about it)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, cc does honor CFLAGS, so this won't actually do anything in our bazel build. Still useful when doing a native cargo build, for micro-benchmarks.

@adam-azarchs adam-azarchs merged commit d0c66a7 into master Dec 10, 2022
@adam-azarchs adam-azarchs deleted the azarchs/flags branch December 10, 2022 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants