Skip to content

Commit

Permalink
build: pass YAML_DEFINE_STATIC to the CInterop
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 committed Jul 18, 2023
1 parent 0d9ee7e commit 90b9a9e
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 90b9a9e

Please sign in to comment.