Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 338 Bytes

File metadata and controls

18 lines (11 loc) · 338 Bytes

ShopModuleSample

This is a example to compile swift source code for a module and a library.

Usage

  1. Creatting Shop Module and Library
$ swiftc -emit-module -emit-library -module-name Shop Shop.swift Product.swift
  1. Runnning TestCode which imports Shop Module
$ swift -I ./Shop -L ./Shop -lShop ShopTest.swift