Skip to content

Commit

Permalink
Link libm on Linux (#11)
Browse files Browse the repository at this point in the history
* Link libm on linux

* Update Linux CI
  • Loading branch information
ctreffs authored Apr 26, 2023
1 parent 9a521cb commit 005dc14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
image: swift:${{ matrix.swift }}
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v3.5.2

- name: Test
run: make test
run: swift test -Xcxx -Wno-modules-import-nested-redundant -Xcxx -Wno-return-type-c-linkage -Xcc -Wno-modules-import-nested-redundant -Xcc -Wno-return-type-c-linkage

- name: Build Release
run: make build-release
run: swift build -c release -Xcxx -Wno-modules-import-nested-redundant -Xcxx -Wno-return-type-c-linkage -Xcc -Wno-modules-import-nested-redundant -Xcc -Wno-return-type-c-linkage
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ var package = Package(
.target(name: "CImGui",
path: "Sources/CImGui",
cSettings: [.define("CIMGUI_DEFINE_ENUMS_AND_STRUCTS")],
cxxSettings: [.define("CIMGUI_DEFINE_ENUMS_AND_STRUCTS")]),
cxxSettings: [.define("CIMGUI_DEFINE_ENUMS_AND_STRUCTS")],
linkerSettings: [.linkedLibrary("m", .when(platforms: [.linux]))]),
.target(name: "AutoWrapper",
resources: [
.copy("Assets/definitions.json")
Expand Down

0 comments on commit 005dc14

Please # to comment.