Skip to content

Commit

Permalink
Set all llvm targets when compiling for mac (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis authored May 22, 2024
1 parent da82c01 commit c02430a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyqir/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Microsoft"]
name = "pyqir"
version = "0.10.1"
version = "0.10.2"
edition = "2021"
license = "MIT"
description = "PyQIR parses, generates and evaluates the Quantum Intermediate Representation."
Expand Down
4 changes: 2 additions & 2 deletions pyqir/NOTICE-WHEEL.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5595,7 +5595,7 @@ limitations under the License.



qirlib 0.10.1 - SPDX: MIT - MIT License
qirlib 0.10.2 - SPDX: MIT - MIT License
https://github.com/qir-alliance/pyqir

/*
Expand Down Expand Up @@ -5970,7 +5970,7 @@ SOFTWARE.



pyqir 0.10.1 - SPDX: MIT - MIT License
pyqir 0.10.2 - SPDX: MIT - MIT License
https://github.com/qir-alliance/pyqir

MIT License
Expand Down
2 changes: 1 addition & 1 deletion pyqir/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pyqir"
version = "0.10.1"
version = "0.10.2"
requires-python = ">= 3.8"
classifiers = [
"License :: OSI Approved :: MIT License",
Expand Down
2 changes: 1 addition & 1 deletion qirlib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "qirlib"
version = "0.10.1"
version = "0.10.2"
edition = "2021"
license = "MIT"
description = "Base Profile QIR library"
Expand Down
10 changes: 9 additions & 1 deletion qirlib/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ endif()

set(CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "")

set(LLVM_TARGETS_TO_BUILD "Native" CACHE STRING "")
message(STATUS CMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES})

if(APPLE)
set(LLVM_TARGETS_TO_BUILD X86 ARM AArch64 CACHE STRING "")
else()
set(LLVM_TARGETS_TO_BUILD "Native" CACHE STRING "")
endif()

message(STATUS LLVM_TARGETS_TO_BUILD=${LLVM_TARGETS_TO_BUILD})

set(PACKAGE_VENDOR LLVM.org CACHE STRING "")

Expand Down

0 comments on commit c02430a

Please sign in to comment.