Skip to content

Commit

Permalink
chore: remove unsafe cflags v2 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooj2 authored Jun 30, 2021
1 parent 12306b7 commit a27ae7e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ awsCCommonPlatformExcludes.append(contentsOf: excludesFromAll)

#if arch(i386) || arch(x86_64)
awsCCommonPlatformExcludes.append("source/arch/arm")
//temporary cause I can't use intrensics because swiftpm doesn't like the necessary compiler flag.
// temporary cause I can't use intrensics because swiftpm doesn't like the necessary compiler flag.
awsCCommonPlatformExcludes.append("source/arch/intel")
//unsafeFlagsArray.append("-mavx512f")
// unsafeFlagsArray.append("-mavx512f")
#elseif arch(arm64)
awsCCommonPlatformExcludes.append("source/arch/intel")
#else
Expand Down Expand Up @@ -99,7 +99,7 @@ package.targets = ( [
path: "aws-common-runtime/config",
publicHeadersPath: ".",
cSettings: [
.unsafeFlags(cFlags)
// .unsafeFlags(cFlags)
]
),
.target(
Expand All @@ -108,7 +108,7 @@ package.targets = ( [
path: "aws-common-runtime/aws-c-common",
exclude: awsCCommonPlatformExcludes,
cSettings: [
.unsafeFlags(cFlags)
// .unsafeFlags(cFlags)
]
),
.target(
Expand All @@ -117,7 +117,7 @@ package.targets = ( [
path: "aws-common-runtime/aws-c-cal",
exclude: awsCCalPlatformExcludes,
cSettings: [
.unsafeFlags(cFlags)
// .unsafeFlags(cFlags)
]
),
.target(
Expand All @@ -126,7 +126,7 @@ package.targets = ( [
path: "aws-common-runtime/aws-c-io",
exclude: awsCIoPlatformExcludes,
cSettings: [
.unsafeFlags(cFlags)
// .unsafeFlags(cFlags)
]
),
.target(
Expand All @@ -135,7 +135,7 @@ package.targets = ( [
path: "aws-common-runtime/aws-c-compression",
exclude: awsCCompressionPlatformExcludes,
cSettings: [
.unsafeFlags(cFlags)
// .unsafeFlags(cFlags)
]
),
.target(
Expand All @@ -144,7 +144,7 @@ package.targets = ( [
path: "aws-common-runtime/aws-c-http",
exclude: awsCHttpPlatformExcludes,
cSettings: [
.unsafeFlags(cFlags)
// .unsafeFlags(cFlags)
]
),
.target(
Expand All @@ -153,7 +153,7 @@ package.targets = ( [
path: "aws-common-runtime/aws-c-auth",
exclude: awsCAuthPlatformExcludes,
cSettings: [
.unsafeFlags(cFlags)
// .unsafeFlags(cFlags)
]
),
.target(
Expand All @@ -162,35 +162,35 @@ package.targets = ( [
path: "aws-common-runtime/aws-c-mqtt",
exclude: awsCMqttPlatformExcludes,
cSettings: [
.define("AWS_MQTT_WITH_WEBSOCKETS"),
.unsafeFlags(cFlags)
.define("AWS_MQTT_WITH_WEBSOCKETS")
// .unsafeFlags(cFlags)
]
),
.target(
name: "AwsCommonRuntimeKit",
dependencies: [ "AwsCMqtt", "AwsCAuth", "AwsCHttp", "AwsCCal", "AwsCCompression", "AwsCIo", "AwsCCommon"],
path: "Source/AwsCommonRuntimeKit",
swiftSettings: [
.unsafeFlags(["-g"]),
.unsafeFlags(["-Onone"], .when(configuration: .debug))
// .unsafeFlags(["-g"]),
// .unsafeFlags(["-Onone"], .when(configuration: .debug))
]
),
.testTarget(
name: "AwsCommonRuntimeKitTests",
dependencies: ["AwsCommonRuntimeKit"],
path: "Test",
swiftSettings: [
.unsafeFlags(["-g"]),
.unsafeFlags(["-Onone"], .when(configuration: .debug))
// .unsafeFlags(["-g"]),
// .unsafeFlags(["-Onone"], .when(configuration: .debug))
]
),
.executableTarget(
name: "Elasticurl",
dependencies: ["AwsCommonRuntimeKit"],
path: "Source/Elasticurl",
swiftSettings: [
.unsafeFlags(["-g"]),
.unsafeFlags(["-Onone"], .when(configuration: .debug))
// .unsafeFlags(["-g"]),
// .unsafeFlags(["-Onone"], .when(configuration: .debug))
]
)
] )

0 comments on commit a27ae7e

Please sign in to comment.