Skip to content

Commit

Permalink
build: pass YAML_DEFINE_STATIC to the CInterop (#398)
Browse files Browse the repository at this point in the history
While we would now build CYaml statically, we would fail to indicate to
clang the library was meant to be used statically and not dynamically.
This cleans up some linker warnings when building SPM.
  • Loading branch information
compnerd authored Aug 12, 2023
1 parent a111ed6 commit 60b9e69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ let package = Package(
.target(
name: "Yams",
dependencies: ["CYaml"],
exclude: ["CMakeLists.txt"]
exclude: ["CMakeLists.txt"],
cSettings: [.define("YAML_DECLARE_STATIC")]
),
.testTarget(
name: "YamsTests",
Expand Down

0 comments on commit 60b9e69

Please sign in to comment.