In SPM Expat is an own module, in Xcode embedded
... hence we need to have a switch for that :-/ Maybe we should split it up in Xcode as well.
This commit is contained in:
parent
9ce35f7557
commit
94b76468ab
|
@ -3,9 +3,14 @@
|
|||
// SwiftyExpat
|
||||
//
|
||||
// Created by Helge Heß on 7/15/14.
|
||||
// Copyright (c) 2014 Always Right Institute. All rights reserved.
|
||||
// Copyright (c) 2014-2018 Always Right Institute. All rights reserved.
|
||||
//
|
||||
|
||||
#if Xcode // wasn't there an SPM flag?
|
||||
#else
|
||||
import Expat
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Simple wrapper for the Expat parser. Though the block based Expat is
|
||||
* reasonably easy to use as-is.
|
||||
|
|
|
@ -439,6 +439,7 @@
|
|||
"-D",
|
||||
HAVE_EXPAT_CONFIG_H,
|
||||
);
|
||||
OTHER_SWIFT_FLAGS = "-DXcode";
|
||||
SDKROOT = macosx;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
||||
SWIFT_VERSION = 4.0;
|
||||
|
@ -491,6 +492,7 @@
|
|||
"-D",
|
||||
HAVE_EXPAT_CONFIG_H,
|
||||
);
|
||||
OTHER_SWIFT_FLAGS = "-DXcode";
|
||||
SDKROOT = macosx;
|
||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||
SWIFT_VERSION = 4.0;
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
import Cocoa
|
||||
import XCTest
|
||||
import SwiftyExpat
|
||||
#if Xcode // wasn't there an SPM flag?
|
||||
#else
|
||||
import Expat
|
||||
#endif
|
||||
|
||||
class SwiftyExpatTests: XCTestCase {
|
||||
|
||||
|
|
Loading…
Reference in New Issue